Bluetooth: hci_sync: Fix accept_list when attempting to suspend
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 5 Jan 2024 15:43:26 +0000 (10:43 -0500)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 28 Feb 2024 14:42:02 +0000 (09:42 -0500)
commite5469adb2a7e930d96813316592302d9f8f1df4e
tree9a71a12ef683381fc1d5d8f1e6340f9b0816ccd4
parent2449007d3f73b2842c9734f45f0aadb522daf592
Bluetooth: hci_sync: Fix accept_list when attempting to suspend

During suspend, only wakeable devices can be in acceptlist, so if the
device was previously added it needs to be removed otherwise the device
can end up waking up the system prematurely.

Fixes: 3b42055388c3 ("Bluetooth: hci_sync: Fix attempting to suspend with unfiltered passive scan")
Signed-off-by: Clancy Shang <clancy.shang@quectel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
net/bluetooth/hci_sync.c