Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 440d7f62 authored by Liangwei Dong's avatar Liangwei Dong Committed by Gerrit - the friendly Code Review server
Browse files

qcacld-3.0: Add dfs channel to ACS chan selection list

Single SAP is not allowed on the DFS channel with the
g_sta_sap_scc_on_dfs_chan value = 1.
If g_sta_sap_scc_on_dfs_chan = 1 and STA is present on the
dfs channel, allow the dfs channel to be added to ACS channel
selection list.

Change-Id: I19f799628febd495302547a3f223e8b2561d8b78
CRs-Fixed: 3271710
parent 2b515172
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -464,7 +464,10 @@ static bool sap_chan_sel_init(mac_handle_t mac_handle,
		}

		if (!include_dfs_ch ||
		    sta_sap_scc_on_dfs_chnl_config_value == 1) {
		    (sta_sap_scc_on_dfs_chnl_config_value ==
				PM_STA_SAP_ON_DFS_MASTER_MODE_DISABLED &&
		     !policy_mgr_is_sta_sap_scc(mac->psoc,
						pSpectCh->chan_freq))) {
			if (wlan_reg_is_dfs_for_freq(mac->pdev,
						     pSpectCh->chan_freq)) {
				QDF_TRACE(QDF_MODULE_ID_SAP,