Jelajahi Sumber

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
Tushnim Bhattacharyya 7 tahun lalu
induk
melakukan
087bff3a13
1 mengubah file dengan 5 tambahan dan 0 penghapusan
  1. 5 0
      core/hdd/src/wlan_hdd_cfg80211.c

+ 5 - 0
core/hdd/src/wlan_hdd_cfg80211.c

@@ -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,