qcacld-3.0: Ignore PCL scoring for non-DBS STA

HW is non-DBS. SAP is UP in 6 GHz. Now, when a STA connection is
attempted, the pcl for the second connection would have SAP SCC
channel with highest priority, all the 5 GHz channels with 2nd
highest priority and the 6 GHz channels with least priority.
Therefore, even if there is a strong 6 GHz candidate for STA, the
5 GHz candidate would be chosen and the SAP moves to SCC in 5 GHz.

To fix this, ignore the pcl scoring for the non-DBS concurrency
cases as the SAP can move to the channel of the best STA interface.

If the SAP is in legacy band, and if still a 6 GHz STA is chosen,
then the legacy SAP would be torn down. So, give STA the best
possible in non-DBS case.

Change-Id: If268b61c61e77db96b499437cdbc95188240fba8
CRs-Fixed: 3749399
Cette révision appartient à :
Surya Prakash Sivaraj
2024-03-04 17:40:21 +05:30
révisé par Ravindra Konda
Parent 7688d07d0e
révision 1b781053a7

Voir le fichier

@@ -1508,11 +1508,15 @@ static void cm_update_score_params(struct wlan_objmgr_psoc *psoc,
weight_config->beamforming_cap_weightage;
/*
* Don’t consider pcl weightage for STA connection,
* if primary interface is configured.
* Don’t consider pcl weightage if:
* a) primary interface is configured (or)
* b) HW is non-DBS
*/
if (policy_mgr_is_pcl_weightage_required(psoc))
if (policy_mgr_is_pcl_weightage_required(psoc) &&
policy_mgr_is_hw_dbs_capable(psoc))
req_score_params->pcl_weightage = weight_config->pcl_weightage;
else
req_score_params->pcl_weightage = 0;
req_score_params->oce_wan_weightage = weight_config->oce_wan_weightage;
req_score_params->oce_ap_tx_pwr_weightage =