qcacld-3.0: Allow same band alternate channel for SAP

Allow the policy manager to select an alternate channel
on the same band if the SAP has no concurrent interfaces.

Change-Id: Ibd358018b0e9d631dbf61b42069a117870b5af44
CRs-Fixed: 3230881
Cette révision appartient à :
Surya Prakash Sivaraj
2022-06-29 11:27:33 +05:30
révisé par Madan Koyyalamudi
Parent 4d9e51e8a7
révision 381bb0f03a

Voir le fichier

@@ -3536,15 +3536,16 @@ uint32_t policy_mgr_get_alternate_channel_for_sap(
/*
* The API is expected to select the channel on the
* other band which is not same as sap's home and
* concurrent interference channel, so skip the sap
* home channel in PCL.
* concurrent interference channel(if present), so skip
* the sap home channel in PCL.
*/
if (pcl_channels[i] == sap_ch_freq)
continue;
if (!is_6ghz_cap &&
WLAN_REG_IS_6GHZ_CHAN_FREQ(pcl_channels[i]))
continue;
if (policy_mgr_are_2_freq_on_same_mac(psoc,
if (policy_mgr_get_connection_count(psoc) &&
policy_mgr_are_2_freq_on_same_mac(psoc,
sap_ch_freq,
pcl_channels[i]))
continue;