summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPragaspathi Thilagaraj <tpragasp@codeaurora.org>2018-11-15 18:51:30 +0530
committernshrivas <nshrivas@codeaurora.org>2018-11-21 05:17:21 -0800
commit50124c70c3dc5caa952a3fb159fd62cbc73deef8 (patch)
tree7fe7f85b4eadc55924a1efc68d0336be925d704a
parenta7314cd877114426ea11d583b158679ffca6797a (diff)
qcacld-3.0: Update disable_hi_rssi after roam sync is complete
The disable_hi_rssi flag in pe session is used to control the hi rssi scan delta value sent from the host to the firmware. If the disable_hi_rssi is set to false, then the ini parameter hi_rssi_scan_rssi_delta value is sent to the firmware. When STA roams from 5G to 2G band, this disable_hi_rssi should be set to false and hi-rssi scan delta will be non zero, so the firmware will handle high rssi scans if the RSSI is better than the roaming threshold. The default ini value of gRoamScanHiRssiDelta is 10. When host driver receives roam sync complete event, set the disable_hi_rssi to true if band is 5G else set it to false. Change-Id: I7b9d94f804619d7a4a11d0ba9acaa6cf5defbc68 CRs-Fixed: 2350842
-rw-r--r--core/sme/src/csr/csr_api_roam.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/core/sme/src/csr/csr_api_roam.c b/core/sme/src/csr/csr_api_roam.c
index e993a3b27375..dc5312e0e807 100644
--- a/core/sme/src/csr/csr_api_roam.c
+++ b/core/sme/src/csr/csr_api_roam.c
@@ -15815,14 +15815,10 @@ QDF_STATUS csr_send_join_req_msg(tpAniSirGlobal pMac, uint32_t sessionId,
}
neigh_roam_info = &pMac->roam.neighborRoamInfo[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.hi_rssi_scan_rssi_delta))) {
+ CDS_IS_CHANNEL_5GHZ(pBssDescription->channelId)) {
pSession->disable_hi_rssi = true;
- sme_debug(
- "Disabling HI_RSSI feature, AP channel=%d, rssi=%d",
- pBssDescription->channelId, pBssDescription->rssi);
+ sme_debug("Disabling HI_RSSI, AP channel=%d, rssi=%d",
+ pBssDescription->channelId, pBssDescription->rssi);
} else {
pSession->disable_hi_rssi = false;
}
@@ -22730,6 +22726,15 @@ static QDF_STATUS csr_process_roam_sync_callback(tpAniSirGlobal mac_ctx,
cds_set_connection_in_progress(false);
session->roam_synch_in_progress = false;
cds_check_concurrent_intf_and_restart_sap(session->pContext);
+
+ if (CDS_IS_CHANNEL_5GHZ(bss_desc->channelId)) {
+ session->disable_hi_rssi = true;
+ sme_debug("Disabling HI_RSSI, AP channel=%d, rssi=%d",
+ bss_desc->channelId, bss_desc->rssi);
+ } else {
+ session->disable_hi_rssi = false;
+ }
+
csr_roam_offload_scan(mac_ctx, session_id,
ROAM_SCAN_OFFLOAD_START,
REASON_CONNECT);