qcacld-3.0: Trim ACS channel list based on the concurrent connections

If force SCC is enabled and there is a STA connection, trim the
ACS channel list on the band on which STA connection is present.

Change-Id: Ibd580a7afdcdfc5fb4398ada547565e229d59c70
CRs-Fixed: 2191792
This commit is contained in:
Tushnim Bhattacharyya
2018-02-21 13:25:15 -08:00
committed by snandini
parent 428897d9a5
commit 087bff3a13

View File

@@ -2667,6 +2667,11 @@ static int __wlan_hdd_cfg80211_do_acs(struct wiphy *wiphy,
pcl_channels_weight_list[i]);
}
if (hw_mode == QCA_ACS_MODE_IEEE80211ANY)
policy_mgr_trim_acs_channel_list(hdd_ctx->hdd_psoc,
sap_config->acs_cfg.ch_list,
&sap_config->acs_cfg.ch_list_count);
if (hdd_ctx->config->force_sap_acs) {
hdd_debug("forcing SAP acs start and end channel");
status = wlan_hdd_reset_force_acs_chan_range(hdd_ctx,