summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Kondabattini <ganeshk@qti.qualcomm.com>2016-06-20 12:12:41 +0530
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-06-22 14:44:39 +0530
commit6611df36a447b670266fb92828b021a0f2886102 (patch)
treebdf9427010036aa590673433444279bce65729df
parentc6fbc29a3101df58ee670ce85e840f25ecbcbe9f (diff)
qcacld-2.0: Reset the parameters which overrides the ACS
When restarting SAP due to unsafe channel list, make sure to set the acs_channel and sapConfig.channel to 0. Otherwise these parameters overides the ACS logic. CRs-Fixed: 1031468 Change-Id: I52d8575960e4d5bac5aa509df41c20fb846a96e6
-rw-r--r--CORE/HDD/src/wlan_hdd_main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index c891412a9b5a..04c079b2854c 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -16645,6 +16645,14 @@ void hdd_unsafe_channel_restart_sap(hdd_context_t *hdd_ctx)
if ((adapter->sessionCtx.ap.sapConfig.acs_cfg.acs_mode) &&
(!hdd_find_prefd_safe_chnl(hdd_ctx, adapter)))
return;
+
+ /* SAP restart due to unsafe channel. While restarting the SAP,
+ * make sure to clear acs_channel, channel to reset to 0.
+ * Otherwise these settings will override the ACS while restart.
+ */
+ hdd_ctx->acs_policy.acs_channel = AUTO_CHANNEL_SELECT;
+ adapter->sessionCtx.ap.sapConfig.channel = AUTO_CHANNEL_SELECT;
+
hddLog(LOG1, FL("Current operation channel %d"),
adapter->sessionCtx.ap.operatingChannel);