diff options
| author | Ganesh Kondabattini <ganeshk@qti.qualcomm.com> | 2016-06-20 12:12:41 +0530 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-06-22 18:22:41 +0530 |
| commit | 7086134e8b69d4978852ef2a8cb447e1569f788b (patch) | |
| tree | bdf9427010036aa590673433444279bce65729df | |
| parent | e6ff9c0a6745d72567f6c96f2fcc91472f043916 (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.c | 8 |
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); |
