summaryrefslogtreecommitdiff
path: root/CORE/MAC/src
diff options
context:
space:
mode:
authorPaul Zhang <paulz@qti.qualcomm.com>2015-07-16 15:51:09 +0800
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2015-07-21 19:07:03 +0530
commit84aa65d91c90e1a947e8b0aac2d6fabbfc46ccac (patch)
treec4e499f69ef102ed97498de754030affc2fafdb3 /CORE/MAC/src
parent0ccc4a1289a618ce043368d87baa1c715437e245 (diff)
qcacld: Fix issue about signal jump
The rssi_raw should not updated when the channel in probe response does not match the channel in BD. Change-Id: I517947c93bec32d9913b0ee85a1bc41e4d22d7d1 CRs-Fixed: 873549
Diffstat (limited to 'CORE/MAC/src')
-rw-r--r--CORE/MAC/src/pe/lim/limScanResultUtils.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/CORE/MAC/src/pe/lim/limScanResultUtils.c b/CORE/MAC/src/pe/lim/limScanResultUtils.c
index 1eec6dd12d90..43187e71d824 100644
--- a/CORE/MAC/src/pe/lim/limScanResultUtils.c
+++ b/CORE/MAC/src/pe/lim/limScanResultUtils.c
@@ -737,6 +737,7 @@ limLookupNaddHashEntry(tpAniSirGlobal pMac,
int idx, len;
tANI_U8 *pbIe;
tANI_S8 rssi = 0;
+ tANI_S8 rssi_raw = 0;
index = limScanHashFunction(pBssDescr->bssDescription.bssId);
ptemp = pMac->lim.gLimCachedScanHashTable[index];
@@ -785,6 +786,7 @@ limLookupNaddHashEntry(tpAniSirGlobal pMac,
if(dontUpdateAll)
{
rssi = ptemp->bssDescription.rssi;
+ rssi_raw = ptemp->bssDescription.rssi_raw;
}
if(pBssDescr->bssDescription.fProbeRsp != ptemp->bssDescription.fProbeRsp)
@@ -841,9 +843,10 @@ limLookupNaddHashEntry(tpAniSirGlobal pMac,
}
//for now, only rssi, we can add more if needed
- if ((action == LIM_HASH_UPDATE) && dontUpdateAll && rssi)
+ if ((action == LIM_HASH_UPDATE) && dontUpdateAll && rssi && rssi_raw)
{
pBssDescr->bssDescription.rssi = rssi;
+ pBssDescr->bssDescription.rssi_raw = rssi_raw;
}
// Add this BSS description at same index
@@ -972,6 +975,7 @@ limLookupNaddLfrHashEntry(tpAniSirGlobal pMac,
int idx, len;
tANI_U8 *pbIe;
tANI_S8 rssi = 0;
+ tANI_S8 rssi_raw = 0;
index = limScanHashFunction(pBssDescr->bssDescription.bssId);
ptemp = pMac->lim.gLimCachedLfrScanHashTable[index];
@@ -1007,6 +1011,7 @@ limLookupNaddLfrHashEntry(tpAniSirGlobal pMac,
if(dontUpdateAll)
{
rssi = ptemp->bssDescription.rssi;
+ rssi_raw = ptemp->bssDescription.rssi_raw;
}
if(pBssDescr->bssDescription.fProbeRsp != ptemp->bssDescription.fProbeRsp)
@@ -1063,9 +1068,10 @@ limLookupNaddLfrHashEntry(tpAniSirGlobal pMac,
}
//for now, only rssi, we can add more if needed
- if ((action == LIM_HASH_UPDATE) && dontUpdateAll && rssi)
+ if ((action == LIM_HASH_UPDATE) && dontUpdateAll && rssi && rssi_raw)
{
pBssDescr->bssDescription.rssi = rssi;
+ pBssDescr->bssDescription.rssi_raw = rssi_raw;
}
// Add this BSS description at same index