mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
Bluetooth: Fix Low energy Proximity path loss threshold alert
Fix sending alert from the proximity client when the received RSSI of the remote device equals the threshold set on the client. CRs-fixed: 344936 Change-Id: I598d7d66b492cb76754280d657b6e6d55dd0903b Signed-off-by: Archana Ramachandran <archanar@codeaurora.org>
This commit is contained in:
parent
fa388f3bbd
commit
ed01b291f6
1 changed files with 2 additions and 2 deletions
|
@ -2921,7 +2921,7 @@ void mgmt_read_rssi_complete(u16 index, s8 rssi, bdaddr_t *bdaddr,
|
|||
|
||||
if (conn->rssi_update_thresh_exceed == 1) {
|
||||
BT_DBG("rssi_update_thresh_exceed == 1");
|
||||
if (rssi >= conn->rssi_threshold) {
|
||||
if (rssi > conn->rssi_threshold) {
|
||||
memset(&ev, 0, sizeof(ev));
|
||||
bacpy(&ev.bdaddr, bdaddr);
|
||||
ev.rssi = rssi;
|
||||
|
@ -2934,7 +2934,7 @@ void mgmt_read_rssi_complete(u16 index, s8 rssi, bdaddr_t *bdaddr,
|
|||
}
|
||||
} else {
|
||||
BT_DBG("rssi_update_thresh_exceed == 0");
|
||||
if (rssi <= conn->rssi_threshold) {
|
||||
if (rssi < conn->rssi_threshold) {
|
||||
memset(&ev, 0, sizeof(ev));
|
||||
bacpy(&ev.bdaddr, bdaddr);
|
||||
ev.rssi = rssi;
|
||||
|
|
Loading…
Reference in a new issue