summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmar Singhal <asinghal@codeaurora.org>2018-03-29 13:58:50 -0700
committernshrivas <nshrivas@codeaurora.org>2018-04-02 16:00:59 -0700
commitd1c0799ef9efaf511a9f3b538d9bbcb4da46ae99 (patch)
tree022235d524c72337a6812ed49ac049038a5e6600
parent8f65bacae72a721165a34df96a87f979fded7b18 (diff)
qcacld-3.0: Reset is_acs_allowed variable when chan count is 0
When world mode is set (ACS chan list is empty) and ACS request comes to driver, is_acs_allowed variable is not reset. Due to this, in subsequent ACS requests, is_acs_allowed variable would become 1, leading to ACS failure in a loop. Fix that. Change-Id: I97689571e147505ea2c21f271c103e3c8cc74b80 CRs-Fixed: 2215385
-rw-r--r--core/hdd/src/wlan_hdd_cfg80211.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c
index 8d0e0255c0d6..79ac6b569e0d 100644
--- a/core/hdd/src/wlan_hdd_cfg80211.c
+++ b/core/hdd/src/wlan_hdd_cfg80211.c
@@ -1766,6 +1766,8 @@ static int __wlan_hdd_cfg80211_do_acs(struct wiphy *wiphy,
}
if (!sap_config->acs_cfg.ch_list_count) {
+ qdf_atomic_set(&adapter->sessionCtx.ap.acs_in_progress, 0);
+ hdd_err("acs config chan count 0");
ret = -EINVAL;
goto out;
}