summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimanshu Agarwal <himanaga@codeaurora.org>2018-02-21 17:44:37 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2018-02-26 04:38:10 -0800
commit73fc4ff8d8315729c6d4542fec9949ceab1f4644 (patch)
tree70d86660fc5c8b9b2184d7b61d9bd68fa4fc76c7
parentb7e0226c6b405738c36c43749c494ecc988e15f8 (diff)
qcacld-3.0: Downgrade bandwidth to 40Mhz in 2.4Ghz case
When the channel list contains only 2.4Ghz channels and bandwidth is coming as 80Mhz in __wlan_hdd_cfg80211_do_acs(), max weight gets assigned to all the channels irrespective of scan results and channel 1 gets selected in the end. Downgrade bandwidth to 40Mhz if channel list contains only 2.4Ghz channels and bandwidth is coming as 80Mhz. Change-Id: I0e54b5db0020768c219acc0d864e72813c9185e9 CRs-Fixed: 2193438
-rw-r--r--core/hdd/src/wlan_hdd_cfg80211.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c
index 97e1340055c9..211b2dd46175 100644
--- a/core/hdd/src/wlan_hdd_cfg80211.c
+++ b/core/hdd/src/wlan_hdd_cfg80211.c
@@ -1788,12 +1788,13 @@ static int __wlan_hdd_cfg80211_do_acs(struct wiphy *wiphy,
sap_config->acs_cfg.hw_mode = eCSR_DOT11_MODE_11ac;
sap_config->acs_cfg.ch_width =
hdd_ctx->config->vhtChannelWidth;
- /* 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;
}
+ /* 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;
+
if (hdd_ctx->config->auto_channel_select_weight)
sap_config->auto_channel_select_weight =
hdd_ctx->config->auto_channel_select_weight;