summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/hdd/src/wlan_hdd_cfg80211.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c
index a334e23b7ad8..25d8ae0aa58a 100644
--- a/core/hdd/src/wlan_hdd_cfg80211.c
+++ b/core/hdd/src/wlan_hdd_cfg80211.c
@@ -1765,22 +1765,24 @@ static int __wlan_hdd_cfg80211_do_acs(struct wiphy *wiphy,
hw_mode = eCSR_DOT11_MODE_11ac;
sap_config->acs_cfg.ch_width =
hdd_ctx->config->vhtChannelWidth;
+ wlan_hdd_set_acs_ch_range(sap_config, hw_mode,
+ ht_enabled, vht_enabled);
/* No VHT80 in 2.4G so perform ACS accordingly */
if (sap_config->acs_cfg.end_ch <= 14 &&
sap_config->acs_cfg.ch_width == eHT_CHANNEL_WIDTH_80MHZ)
sap_config->acs_cfg.ch_width = eHT_CHANNEL_WIDTH_40MHZ;
+ } else {
+ wlan_hdd_set_acs_ch_range(sap_config, hw_mode,
+ ht_enabled, vht_enabled);
}
- wlan_hdd_set_acs_ch_range(sap_config, hw_mode,
- ht_enabled, vht_enabled);
-
if (hdd_ctx->config->auto_channel_select_weight)
sap_config->auto_channel_select_weight =
hdd_ctx->config->auto_channel_select_weight;
hdd_debug("ACS Config for %s: HW_MODE: %d ACS_BW: %d HT: %d VHT: %d START_CH: %d END_CH: %d",
adapter->dev->name, sap_config->acs_cfg.hw_mode,
- ch_width, ht_enabled, vht_enabled,
+ sap_config->acs_cfg.ch_width, ht_enabled, vht_enabled,
sap_config->acs_cfg.start_ch, sap_config->acs_cfg.end_ch);
if (sap_config->acs_cfg.ch_list_count) {