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:
Archana Ramachandran 2012-03-22 15:35:34 -07:00 committed by Stephen Boyd
parent fa388f3bbd
commit ed01b291f6

View file

@ -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;