mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
Bluetooth: Fix reporting invalid RSSI for LE devices
Start Discovery was reporting 0 RSSI for invalid RSSI only for BR/EDR devices. LE devices were reported with RSSI 127. Signed-off-by: Szymon Janc <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]> Cc: [email protected] # 3.19+
This commit is contained in:
parent
9a5abdaaf9
commit
91200e9f3e
1 changed files with 2 additions and 1 deletions
|
|
@ -7238,7 +7238,8 @@ void mgmt_device_found(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type,
|
|||
* However when using service discovery, the value 127 will be
|
||||
* returned when the RSSI is not available.
|
||||
*/
|
||||
if (rssi == HCI_RSSI_INVALID && !hdev->discovery.report_invalid_rssi)
|
||||
if (rssi == HCI_RSSI_INVALID && !hdev->discovery.report_invalid_rssi &&
|
||||
link_type == ACL_LINK)
|
||||
rssi = 0;
|
||||
|
||||
bacpy(&ev->addr.bdaddr, bdaddr);
|
||||
|
|
|
|||
Loading…
Reference in a new issue