Bluetooth: Disable page scan if all whitelisted devices are connected
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 1 Aug 2014 08:13:32 +0000 (11:13 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 14 Aug 2014 06:49:10 +0000 (08:49 +0200)
commit22f433dcf7c71cf075e4c42b5f36ea4352978a6d
treea5dd4e4f4e5c8114e12992b9314cadaf9950db54
parent432df05eb1e57adfc46df08abbedca6c3b8862f7
Bluetooth: Disable page scan if all whitelisted devices are connected

When we're not connectable and all whitelisted (BR/EDR) devices are
connected it doesn't make sense to keep page scan enabled. This patch
adds code to check for any disconnected whitelist devices and if there
are none take the appropriate action in the hci_update_page_scan()
function to disable page scan.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c
net/bluetooth/hci_event.c
This page took 0.024332 seconds and 5 git commands to generate.