mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:11:14 -04:00
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
This commit is contained in:
parent
90ed9e3bb9
commit
bef8c10a92
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue