qcacmn: Print eht self and AP caps while calculating candidate scores

Print eht self and AP caps while calculating candidate scores.

Change-Id: I67db8781ee11c06ba5ec22608dcddace3f7c406b
CRs-Fixed: 3253959
This commit is contained in:
Abhishek Singh
2022-07-12 18:14:32 +05:30
committed by Madan Koyyalamudi
parent 65f2d8d06f
commit 9738cd5a32
2 changed files with 12 additions and 4 deletions

View File

@@ -2176,12 +2176,14 @@ static int cm_calculate_bss_score(struct wlan_objmgr_psoc *psoc,
prorated_pcnt); prorated_pcnt);
score += eht_score; score += eht_score;
mlme_nofl_debug("Candidate("QDF_MAC_ADDR_FMT" freq %d): rssi %d HT %d VHT %d HE %d su bfer %d phy %d air time frac %d qbss %d cong_pct %d NSS %d ap_tx_pwr_dbm %d oce_subnet_id_present %d sae_pk_cap_present %d prorated_pcnt %d keymgmt 0x%x mlo type %d", mlme_nofl_debug("Candidate("QDF_MAC_ADDR_FMT" freq %d): rssi %d HT %d VHT %d HE %d EHT %d su bfer %d phy %d air time frac %d qbss %d cong_pct %d NSS %d ap_tx_pwr_dbm %d oce_subnet_id_present %d sae_pk_cap_present %d prorated_pcnt %d keymgmt 0x%x mlo type %d",
QDF_MAC_ADDR_REF(entry->bssid.bytes), QDF_MAC_ADDR_REF(entry->bssid.bytes),
entry->channel.chan_freq, entry->channel.chan_freq,
entry->rssi_raw, util_scan_entry_htcap(entry) ? 1 : 0, entry->rssi_raw, util_scan_entry_htcap(entry) ? 1 : 0,
util_scan_entry_vhtcap(entry) ? 1 : 0, util_scan_entry_vhtcap(entry) ? 1 : 0,
util_scan_entry_hecap(entry) ? 1 : 0, ap_su_beam_former, util_scan_entry_hecap(entry) ? 1 : 0,
util_scan_entry_ehtcap(entry) ? 1 : 0,
ap_su_beam_former,
entry->phy_mode, entry->air_time_fraction, entry->phy_mode, entry->air_time_fraction,
entry->qbss_chan_load, congestion_pct, entry->nss, entry->qbss_chan_load, congestion_pct, entry->nss,
ap_tx_pwr_dbm, oce_subnet_id_present, ap_tx_pwr_dbm, oce_subnet_id_present,
@@ -2260,9 +2262,9 @@ void wlan_cm_calculate_bss_score(struct wlan_objmgr_pdev *pdev,
score_config = &mlme_psoc_obj->psoc_cfg.score_config; score_config = &mlme_psoc_obj->psoc_cfg.score_config;
config = &mlme_psoc_obj->psoc_cfg.phy_config; config = &mlme_psoc_obj->psoc_cfg.phy_config;
mlme_nofl_debug("Self caps: HT %d VHT %d HE %d VHT_24Ghz %d BF cap %d bw_above_20_24ghz %d bw_above_20_5ghz %d 2.4G NSS %d 5G NSS %d", mlme_nofl_debug("Self caps: HT %d VHT %d HE %d EHT %d VHT_24Ghz %d BF cap %d bw_above_20_24ghz %d bw_above_20_5ghz %d 2.4G NSS %d 5G NSS %d",
config->ht_cap, config->vht_cap, config->ht_cap, config->vht_cap,
config->he_cap, config->vht_24G_cap, config->he_cap, config->eht_cap, config->vht_24G_cap,
config->beamformee_cap, config->bw_above_20_24ghz, config->beamformee_cap, config->bw_above_20_24ghz,
config->bw_above_20_5ghz, config->vdev_nss_24g, config->bw_above_20_5ghz, config->vdev_nss_24g,
config->vdev_nss_5g); config->vdev_nss_5g);

View File

@@ -1581,7 +1581,13 @@ util_scan_entry_ehtop(struct scan_cache_entry *scan_entry)
{ {
return scan_entry->ie_list.ehtop; return scan_entry->ie_list.ehtop;
} }
#else
static inline uint8_t*
util_scan_entry_ehtcap(struct scan_cache_entry *scan_entry)
{
return NULL;
}
#endif #endif
/** /**