Sfoglia il codice sorgente

qcacld-3.0: Limit mandatory channel list addition to STA+SAP

When STA+SAP is operating in indoor channels, mandatory
channel list is added to the supported channel list of the
seconday interface.

But the API is common even for SAP+SAP and fails to detect
interfering channels in case of SAP+SAP due to this.
So, limit the mandatory channel list consideration only
for STA+SAP.

Change-Id: If7063e81d0daa9ef86b8af71ba517756f96edb32
CRs-Fixed: 3245034
Srinivas Dasari 2 anni fa
parent
commit
1c124e5467

+ 2 - 1
components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c

@@ -4414,7 +4414,8 @@ void policy_mgr_check_scc_sbs_channel(struct wlan_objmgr_psoc *psoc,
 		sta_sap_scc_on_indoor_channel_allowed =
 			policy_mgr_get_sta_sap_scc_allowed_on_indoor_chnl(psoc);
 
-		if (sta_sap_scc_on_indoor_channel_allowed &&
+		if (sta_count &&
+		    sta_sap_scc_on_indoor_channel_allowed &&
 		    ((wlan_reg_is_freq_indoor(pm_ctx->pdev, sap_ch_freq) &&
 		    WLAN_REG_IS_24GHZ_CH_FREQ(*intf_ch_freq)) ||
 		    (wlan_reg_is_freq_indoor(pm_ctx->pdev, *intf_ch_freq) &&