summaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-03-26 14:17:12 +0200
committerMarcel Holtmann <marcel@holtmann.org>2014-03-26 09:31:41 -0700
commitab0aa433e2f6c69e69b4d5a951c0b84e7b193f0d (patch)
tree431d10d0ec4b77f398b759a05dd537a976182c3f /net/bluetooth
parentff5cd29f5cb8de0f0bc9016874ddde467d4b0c85 (diff)
downloadblackbird-op-linux-ab0aa433e2f6c69e69b4d5a951c0b84e7b193f0d.tar.gz
blackbird-op-linux-ab0aa433e2f6c69e69b4d5a951c0b84e7b193f0d.zip
Bluetooth: Fix RSSI value in device found event from disabling scan
When sending a pending device found event triggered by disabling LE scanning we should use the stored RSSI instead of sending a zero value. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/hci_event.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 2ecb34f2e2ad..ddb518c62ed1 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -1091,8 +1091,9 @@ static void hci_cc_le_set_scan_enable(struct hci_dev *hdev,
struct discovery_state *d = &hdev->discovery;
mgmt_device_found(hdev, &d->last_adv_addr, LE_LINK,
- d->last_adv_addr_type, NULL, 0, 0,
- 1, d->last_adv_data,
+ d->last_adv_addr_type, NULL,
+ d->last_adv_rssi, 0, 1,
+ d->last_adv_data,
d->last_adv_data_len, NULL, 0);
}
OpenPOWER on IntegriCloud