]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Enable passive scanning whenever we're connectable
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 7 Jul 2014 11:40:22 +0000 (14:40 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 7 Jul 2014 11:53:03 +0000 (13:53 +0200)
commit4c17f7b45ed8db9eda2f03d29d14ccaaeb9191dc
treea3ed3539e2da9b337d727c1fe7371d78cebe042d
parent26fd43b2506ea93745150277ca5eaef28d95cff7
Bluetooth: Enable passive scanning whenever we're connectable

Enabling passive scanning always when we're connectable aligns us with
the BR/EDR page scanning. This is also consistent with the fact that the
code dealing with passive scanning results will actively try to connect
any direct advertising event when we're connectable.

This patch implements the feature by adding the connectable condition to
hci_update_background_scan() checks for starting scanning and by calling
hci_update_background_scan() whenever the connectable state changes.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c
net/bluetooth/mgmt.c