aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_request.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <[email protected]>2022-05-12 22:31:34 +0000
committerMarcel Holtmann <[email protected]>2022-05-13 11:22:29 +0000
commit3b42055388c30f2761a2d9cd9af2c99611dfe457 (patch)
tree3c07105547157330cc0f4fb4a7c45a39135ea063 /net/bluetooth/hci_request.c
parentBluetooth: MGMT: Add conditions for setting HCI_CONN_FLAG_REMOTE_WAKEUP (diff)
downloadkernel-3b42055388c30f2761a2d9cd9af2c99611dfe457.tar.gz
kernel-3b42055388c30f2761a2d9cd9af2c99611dfe457.zip
Bluetooth: hci_sync: Fix attempting to suspend with unfiltered passive scan
When suspending the passive scanning _must_ have its filter_policy set to 0x01 to use the accept list otherwise _any_ advertise report would end up waking up the system. In order to fix the filter_policy the code now checks for hdev->suspended && HCI_CONN_FLAG_REMOTE_WAKEUP first, since the MGMT_OP_SET_DEVICE_FLAGS will reject any attempt to set HCI_CONN_FLAG_REMOTE_WAKEUP when it cannot be programmed in the acceptlist, so it can return success causing the proper filter_policy to be used. Link: https://bugzilla.kernel.org/show_bug.cgi?id=215768 Signed-off-by: Luiz Augusto von Dentz <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'net/bluetooth/hci_request.c')
0 files changed, 0 insertions, 0 deletions