diff options
author | Srinivas Girigowda <sgirigow@codeaurora.org> | 2018-08-14 18:42:54 -0700 |
---|---|---|
committer | Kumar Anand <kumaranand@google.com> | 2018-08-16 15:27:54 -0700 |
commit | b9c9540a3e42aa370986dd9de38d8daa68c207a8 (patch) | |
tree | 856ebe39d41d70870341920160bda4a260c72f29 | |
parent | d71ed77684cde9090c1589e63fbd6dec6558f39a (diff) | |
download | qcacld-b9c9540a3e42aa370986dd9de38d8daa68c207a8.tar.gz |
qcacld-3.0: Limit SAP channel to 1-11 for 2.4GHz
There are many legacy clients which supports 2.4GHz but
don't support channel 12 and 13 (or does not have the capability
to detect country change where channel 12 and 13 is valid).
In that case, if SAP comes up on channel 12/13, those legacy
clients won't be able to connect to AP.
Hence, remove channel 12/13 from the ACS channel list in 2.4GHz
Change-Id: I200fe3a99bdd169363178d1a01b38ae2d57114be
Bug: 112520574
Signed-off-by: Srinivas Girigowda <sgirigow@codeaurora.org>
-rw-r--r-- | core/hdd/src/wlan_hdd_cfg80211.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 86a37039ce..4d8051c160 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -1793,6 +1793,21 @@ static int __wlan_hdd_cfg80211_do_acs(struct wiphy *wiphy, sap_config->acs_cfg.ch_list_count = ch_cnt; } + ch_cnt = 0; + for (i = 0; i < sap_config->acs_cfg.ch_list_count; i++) { + if (sap_config->acs_cfg.ch_list[i] > + CDS_CHANNEL_NUM(CHAN_ENUM_11) && + sap_config->acs_cfg.ch_list[i] < + CDS_CHANNEL_NUM(CHAN_ENUM_36)) { + hdd_info("skip channel %d", + sap_config->acs_cfg.ch_list[i]); + continue; + } + sap_config->acs_cfg.ch_list[ch_cnt++] = + sap_config->acs_cfg.ch_list[i]; + } + sap_config->acs_cfg.ch_list_count = ch_cnt; + hdd_debug("get pcl for DO_ACS vendor command"); /* consult policy manager to get PCL */ |