From bba79e41cd670452313f7436b7e55de59813a3b0 Mon Sep 17 00:00:00 2001 From: Srinivas Dasari Date: Mon, 11 Sep 2023 01:03:08 +0530 Subject: [PATCH] qcacld-3.0: Allow SAP to move to unsafe channel if ini allows User may set the ini param g_sta_sap_scc_on_lte_coex_chan=1 if SAP is allowed to come up on unsafe channels. Currently, this doesn't cover the below case, 1. SAP is enabled on a 5 GHz channel in a non-DBS platform 2. Concurrent STA enabled and connected it to an AP that's in unsafe channel. 3. SAP doesn't move to the STA channel though the ini to enable force SCC(gWlanMccToSccSwitchMode) is set and it's a non-DBS platform as the target channel(STA channel) is unsafe channel. Allow SAP to move to unsafe STA channel if the ini g_sta_sap_scc_on_lte_coex_chan is set to true. Change-Id: I3e2b8ae57e843a938e4799f473da87664dbabb85 CRs-Fixed: 3609503 --- .../cmn_services/policy_mgr/src/wlan_policy_mgr_action.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c index 671ae3c3b3a2..83d38f48f2ad 100644 --- a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c +++ b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c @@ -2097,7 +2097,8 @@ static bool policy_mgr_valid_sta_channel_check(struct wlan_objmgr_psoc *psoc, !sta_sap_scc_on_dfs_chan) || wlan_reg_is_passive_or_disable_for_freq( pm_ctx->pdev, sta_ch_freq) || - !policy_mgr_is_safe_channel(psoc, sta_ch_freq)) { + (!policy_mgr_sta_sap_scc_on_lte_coex_chan(psoc) && + !policy_mgr_is_safe_channel(psoc, sta_ch_freq))) { if (policy_mgr_is_hw_dbs_capable(psoc)) return true; else