Bluetooth: Report invalid RSSI for service discovery and background scan
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 5 Dec 2014 12:03:35 +0000 (13:03 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 5 Dec 2014 12:14:28 +0000 (14:14 +0200)
commitda25cf6a9869cff52b4fd189fdcd322ad2daf023
tree87fa00769125e8ee332b6346f24786bb4d6eb73a
parentefb2513fd6278d97d2114ab87f019f4fed01c037
Bluetooth: Report invalid RSSI for service discovery and background scan

When using Start Service Discovery and when background scanning is used
to report devices, the RSSI is reported or the value 127 is provided in
case RSSI in unavailable.

For Start Discovery the value 0 is reported to keep backwards
compatibility with the existing users.

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