summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVarun Reddy Yeturu <vyeturu@qca.qualcomm.com>2016-05-12 12:10:45 -0700
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-05-13 14:42:59 +0530
commitb3cf666143d50ebf592a515a9b522028851e5f6d (patch)
treeca1b461e5b3d0b9739587b1bccaf6aa1d71e6287
parentc60b264e7586c61d57243c6d01ff7d4cc00760ec (diff)
qcacld-2.0: Fix incorrect logic to disable hi_rssi feature
Fix incorrect logic to disable hi_rssi feature. Both hi_rssi_scan_rssi_delta and neighborLookupThreshold are positive values. Ideally it should be checked if the current AP is better than the HI_RSSI threshold and then disable the feature. The HI_RSSI threshold is the difference between the lookup threshold and the hi_rssi delta. CRs-Fixed: 1014859 Change-Id: I6980927b25c34b9b4d8ac13c22e93abc4ec500ec
-rw-r--r--CORE/SME/src/csr/csrApiRoam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/CORE/SME/src/csr/csrApiRoam.c b/CORE/SME/src/csr/csrApiRoam.c
index 20ddeffd19b6..d031172f4c1d 100644
--- a/CORE/SME/src/csr/csrApiRoam.c
+++ b/CORE/SME/src/csr/csrApiRoam.c
@@ -13734,7 +13734,7 @@ eHalStatus csrSendJoinReqMsg( tpAniSirGlobal pMac, tANI_U32 sessionId, tSirBssDe
if ((eWNI_SME_REASSOC_REQ == messageType) ||
CSR_IS_CHANNEL_5GHZ(pBssDescription->channelId) ||
(abs(pBssDescription->rssi) <
- (neigh_roam_info->cfgParams.neighborLookupThreshold +
+ (neigh_roam_info->cfgParams.neighborLookupThreshold -
neigh_roam_info->cfgParams.hi_rssi_scan_rssi_delta))) {
pSession->disable_hi_rssi = true;
VOS_TRACE(VOS_MODULE_ID_SME, VOS_TRACE_LEVEL_DEBUG,