Преглед изворни кода

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
Surya Prakash Sivaraj пре 2 година
родитељ
комит
381bb0f03a
1 измењених фајлова са 4 додато и 3 уклоњено
  1. 4 3
      components/cmn_services/policy_mgr/src/wlan_policy_mgr_pcl.c

+ 4 - 3
components/cmn_services/policy_mgr/src/wlan_policy_mgr_pcl.c

@@ -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;