summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSachin Ahuja <sahuja@qti.qualcomm.com>2015-11-16 15:15:49 +0530
committerSatish Singh <ssing@codeaurora.org>2015-11-25 17:26:48 -0800
commitbef8c10a92c1659967acbdefcef67d37366b34fb (patch)
treef6d7731f91a9c2f2b6eb3fd4d12249b70dec7144
parent90ed9e3bb9b9bc587617e291daccb9b1af4a4f74 (diff)
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
-rw-r--r--core/hdd/src/wlan_hdd_wext.c3
1 files changed, 3 insertions, 0 deletions
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);