]> 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)
commit4bb4d3ffeaa7cb5b83171d1e21a6affdff6ea6f5
treed0fba88aa0572ebc929f0118295cc9ecef8dc2e0
parent9da8b5dff1c44b807df1c130d857cb7a2938f3ed
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