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)
commit0d2bf13462732d3b2e11d8efb0545c1ed272298b
tree1065349727cfb7a56059809823ae94ab2d837ff2
parent75ce208cc44938195f57c55f81c8e4447dd492fb
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