Ver Fonte

qcacld-3.0: Fix incorrect logic to disable hi_rssi feature

qcacld-2.0 to qcacld-3.0 propagation

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
Varun Reddy Yeturu há 9 anos atrás
pai
commit
f64252ab9f
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      core/sme/src/csr/csr_api_roam.c

+ 1 - 1
core/sme/src/csr/csr_api_roam.c

@@ -13453,7 +13453,7 @@ QDF_STATUS csr_send_join_req_msg(tpAniSirGlobal pMac, uint32_t sessionId,
 	if ((eWNI_SME_REASSOC_REQ == messageType) ||
 		CDS_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;
 		sms_log(pMac, LOG1,