qcacld-3.0: Fix start on DFS failure for auto GO

From Auto P2P GO DFS requirement, if GO force SCC strict
enable and sta_sap_scc_on_dfs_chan ini enabled, allow
Autonomous GO starts on DFS.
Fix it by allow GO on DFS such configuration.

Change-Id: Ia4c5b1c7889f5c3115e4e05ac7f051673bbb2b81
CRs-Fixed: 3228456
This commit is contained in:
Liangwei Dong
2022-06-22 15:54:03 +08:00
committed by Madan Koyyalamudi
parent 1be46c9f18
commit 5205b3d19a

View File

@@ -2560,7 +2560,9 @@ policy_mgr_valid_sap_conc_channel_check(struct wlan_objmgr_psoc *psoc,
ch_freq); ch_freq);
} else if (con_mode == PM_P2P_GO_MODE && } else if (con_mode == PM_P2P_GO_MODE &&
wlan_reg_is_passive_or_disable_for_freq(pm_ctx->pdev, wlan_reg_is_passive_or_disable_for_freq(pm_ctx->pdev,
ch_freq)) { ch_freq) &&
!(policy_mgr_is_go_scc_strict(psoc) &&
(!is_sta_sap_scc || sta_sap_scc_on_dfs_chan))) {
find_alternate = true; find_alternate = true;
policymgr_nofl_debug("Go not capable on dfs/disabled con ch_freq %d", policymgr_nofl_debug("Go not capable on dfs/disabled con ch_freq %d",
ch_freq); ch_freq);