diff --git a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_get_set_utils.c b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_get_set_utils.c index 8bfc359859bf..8ebf4abd19c0 100644 --- a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_get_set_utils.c +++ b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_get_set_utils.c @@ -4323,7 +4323,9 @@ bool policy_mgr_is_sta_sap_scc(struct wlan_objmgr_psoc *psoc, conn_index++) { if (pm_conc_connection_list[conn_index].in_use && (pm_conc_connection_list[conn_index].mode == - PM_STA_MODE) && (sap_freq == + PM_STA_MODE || + pm_conc_connection_list[conn_index].mode == + PM_P2P_CLIENT_MODE) && (sap_freq == pm_conc_connection_list[conn_index].freq)) { is_scc = true; break; diff --git a/core/sap/src/sap_module.c b/core/sap/src/sap_module.c index f54fbbd8c20f..d8efc645146c 100644 --- a/core/sap/src/sap_module.c +++ b/core/sap/src/sap_module.c @@ -1378,8 +1378,7 @@ QDF_STATUS wlansap_set_channel_change_with_csa(struct sap_context *sap_ctx, } mac_handle = MAC_HANDLE(mac); - if (strict && !policy_mgr_is_safe_channel( - mac->psoc, target_chan_freq)) { + if (!policy_mgr_is_sap_freq_allowed(mac->psoc, target_chan_freq)) { sap_err("%u is unsafe channel freq", target_chan_freq); return QDF_STATUS_E_FAULT; }