From bef8c10a92c1659967acbdefcef67d37366b34fb Mon Sep 17 00:00:00 2001 From: Sachin Ahuja Date: Mon, 16 Nov 2015 15:15:49 +0530 Subject: [PATCH] qcacld-3.0: Avoid sending positive RSSI value to framework. qcacld-2.0 to qcacld-3.0 propagation Currently if STA is very near to connected AP, it sends the positive value of RSSI to framework. Framework checks this RSSI and if positive(greater than 0) then it consider RSSI as -127dbm which may lead to disconnection. So changes are done to avoid sending the positive RSSI value greater than 0. Change-Id: Ib417f48345e3f78dba54d68969fa15d294f313b9 CRs-Fixed: 842243 --- core/hdd/src/wlan_hdd_wext.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c index bb16e8f222ad..064dbdceb654 100644 --- a/core/hdd/src/wlan_hdd_wext.c +++ b/core/hdd/src/wlan_hdd_wext.c @@ -1014,6 +1014,9 @@ static void hdd_get_rssi_cb(int8_t rssi, uint32_t staId, void *pContext) /* copy over the rssi */ pAdapter->rssi = rssi; + if (pAdapter->rssi > 0) + pAdapter->rssi = 0; + /* notify the caller */ complete(&pStatsContext->completion);