qcacld-3.0: Allow SAP STA SCC on unsafe channel

When g_sta_sap_scc_on_lte_coex_chan = 1, SAP is allowed SCC with
STA on unsafe channel.
Use API policy_mgr_is_sap_freq_allowed to check such condition
in wlansap_get_chan_band_restrict.

Change-Id: I62b3ad83ccdfc80b5e72cad733618326e4fed936
CRs-Fixed: 3368195
此提交包含在:
Liangwei Dong
2022-12-27 10:30:46 +08:00
提交者 Madan Koyyalamudi
父節點 114d5285a4
當前提交 8b74f67a1b

查看文件

@@ -3594,7 +3594,8 @@ qdf_freq_t wlansap_get_chan_band_restrict(struct sap_context *sap_ctx,
sap_debug("channel is passive");
*csa_reason = CSA_REASON_CHAN_PASSIVE;
return wlansap_get_safe_channel_from_pcl_for_sap(sap_ctx);
} else if (!policy_mgr_is_safe_channel(mac->psoc, sap_ctx->chan_freq)) {
} else if (!policy_mgr_is_sap_freq_allowed(mac->psoc,
sap_ctx->chan_freq)) {
sap_debug("channel is unsafe");
*csa_reason = CSA_REASON_UNSAFE_CHANNEL;
return wlansap_get_safe_channel_from_pcl_and_acs_range(sap_ctx);