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)
commitc4f1f408168cd6a83d973e98e1cd1888e4d3d907
treed0fba88aa0572ebc929f0118295cc9ecef8dc2e0
parenta31489d2a368d2f9225ed6a6f595c63bc7d10de8
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