]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Add support for background LE scanning
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 2 Jul 2014 19:42:02 +0000 (22:42 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:59 +0000 (17:42 +0200)
commite5e6f25f54723522995adb87740f8427bda917cb
tree1065349727cfb7a56059809823ae94ab2d837ff2
parent54a1d53a2c2f926df850bb3eb54710859523b90f
Bluetooth: Add support for background LE scanning

If we have one or more devices with HCI_AUTO_CONN_REPORT we should do
background scanning and emit mgmt_device_found events. This patch
modifies the hci_update_background_scan() function to extend the
conditions needed to trigger scanning, and adds the necessary code to
process_adv_report() to emit mgmt_device_found events.

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