Bluetooth: Add restarting to service discovery
authorJakub Pawlowski <jpawlowski@google.com>
Mon, 2 Feb 2015 07:07:55 +0000 (23:07 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 2 Feb 2015 07:52:34 +0000 (08:52 +0100)
commit4b0e0ceddf085a89173805cace44cd3c4c9d9d77
tree3a21e7bfb48f6b548337ad9a1758783d6c5dbd21
parent2d28cfe7aada495f87bb439151e9bcc86998fb6d
Bluetooth: Add restarting to service discovery

When using LE_SCAN_FILTER_DUP_ENABLE, some controllers would send
advertising report from each LE device only once. That means that we
don't get any updates on RSSI value, and makes Service Discovery very
slow. This patch adds restarting scan when in Service Discovery, and
device with filtered uuid is found, but it's not in RSSI range to send
event yet. This way if device moves into range, we will quickly get RSSI
update.

Signed-off-by: Jakub Pawlowski <jpawlowski@google.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/mgmt.c