qcacmn: Fix rssi score 0 for non eht ap

If WLAN_FEATURE_11BE_MLO defined, cm_calculate_raw_rssi_score return 0,
cm_calculate_eht_score return 0 too if eht cap isn't supported,
so rssi score is always 0 if candidate doesn't support eht cap.

Change-Id: Id0a3e92d9255178511cfdfea8649cf6e184b16c2
CRs-Fixed: 3234156
This commit is contained in:
Jianmin Zhu
2022-06-15 22:08:00 +08:00
committed by Madan Koyyalamudi
parent e0231b2771
commit e3e178489d

View File

@@ -1589,15 +1589,17 @@ static int cm_calculate_eht_score(struct scan_cache_entry *entry,
struct weight_cfg *weight_config;
uint8_t partner_link_idx = cm_get_parter_link_index(entry);
weight_config = &score_config->weight_config;
if (!phy_config->eht_cap || !entry->ie_list.ehtcap)
return 0;
return cm_calculate_rssi_score(&score_config->rssi_score,
entry->rssi_raw,
weight_config->rssi_weightage);
/* TODO: get partner entry and return ml_score for that if it is
* non-zero
*/
weight_config = &score_config->weight_config;
joint_rssi = cm_get_joint_rssi(entry, weight_config, partner_link_idx);
joint_rssi_score = cm_calculate_rssi_score(