]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Interleave with allowlist scan
authorHoward Chung <howardchung@google.com>
Thu, 26 Nov 2020 04:22:21 +0000 (12:22 +0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 7 Dec 2020 15:00:43 +0000 (17:00 +0200)
commit5847ea11d6e8db3813b2af96703bf379996ee52b
treed0fba88aa0572ebc929f0118295cc9ecef8dc2e0
parentd97837e384f4d98d7b5026b8c5f082a85bec99f5
Bluetooth: Interleave with allowlist scan

This patch implements the interleaving between allowlist scan and
no-filter scan. It'll be used to save power when at least one monitor is
registered and at least one pending connection or one device to be
scanned for.

The durations of the allowlist scan and the no-filter scan are
controlled by MGMT command: Set Default System Configuration. The
default values are set randomly for now.

Signed-off-by: Howard Chung <howardchung@google.com>
Reviewed-by: Alain Michaud <alainm@chromium.org>
Reviewed-by: Manish Mandlik <mmandlik@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c
net/bluetooth/hci_request.c
net/bluetooth/mgmt_config.c