diff options
author | Rolando Roca <rolandor@valvesoftware.com> | 2023-09-22 14:23:12 -0700 |
---|---|---|
committer | Christian Marcheselli <christianm@valvesoftware.com> | 2023-11-09 10:48:08 -0800 |
commit | fb38084dad1c3af2776da3ae66c9cf9e0bcebeee (patch) | |
tree | 6e2367fe3ef92e3202402ccca23ffffcb2293065 /net | |
parent | 69be18f81e69dfa29b0304c956c27a6ccb510e71 (diff) | |
download | linux-fb38084dad1c3af2776da3ae66c9cf9e0bcebeee.tar.gz |
[Zhongjun.yu][BT]: Fixed an issue where the Steam Deck could not into sleep because it continued advertizing after the Steam Controller was disconnected.
<Change Type>: Poor experience <<< Test Notes >>> <Test-Proposal>: 1)BT BR/EDR gamepad wakeup function 1)BT BLE gamepad wakeup function <Stress-Test>: Y
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/hci_sync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c index ad1fd9ee4d88..049ccb743b41 100644 --- a/net/bluetooth/hci_sync.c +++ b/net/bluetooth/hci_sync.c @@ -5786,7 +5786,7 @@ int hci_suspend_sync(struct hci_dev *hdev) if (hci_conn_count(hdev)) { /* Soft disconnect everything (power off) */ - err = hci_disconnect_all_sync(hdev, HCI_ERROR_REMOTE_POWER_OFF); + err = hci_disconnect_all_sync(hdev, HCI_ERROR_REMOTE_USER_TERM); if (err) { /* Set state to BT_RUNNING so resume doesn't notify */ hdev->suspend_state = BT_RUNNING; |