]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Use whitelist for scan policy when suspending
authorMiao-chen Chou <mcchou@chromium.org>
Tue, 7 Jul 2020 22:52:28 +0000 (15:52 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 8 Jul 2020 11:59:06 +0000 (13:59 +0200)
commit29c712da3c81c2111c6e59d2db99b35f84204275
treefdf28ef3322fac714447bd12d1c746d23b513b38
parentcaa61f9231d2d5df8c41f9e24e93c1645125c43a
Bluetooth: Use whitelist for scan policy when suspending

Even with one advertisement monitor in place, the scan policy should use
the whitelist while the system is going to suspend to prevent waking by
random advertisement.

The following test was performed.
- With a paired device, register one advertisement monitor, suspend
the system and verify that the host was not awaken by random
advertisements.

Signed-off-by: Miao-chen Chou <mcchou@chromium.org>
Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_request.c