Lines Matching refs:deflink
1640 ratemask = sta->deflink.supp_rates[band]; in ath11k_peer_assoc_h_rates()
1685 const struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in ath11k_peer_assoc_h_ht()
1722 if (sta->deflink.bandwidth >= IEEE80211_STA_RX_BW_40) { in ath11k_peer_assoc_h_ht()
1780 arg->peer_nss = min(sta->deflink.rx_nss, max_nss); in ath11k_peer_assoc_h_ht()
1882 const struct ieee80211_sta_vht_cap *vht_cap = &sta->deflink.vht_cap; in ath11k_peer_assoc_h_vht()
1928 if (sta->deflink.bandwidth == IEEE80211_STA_RX_BW_80) in ath11k_peer_assoc_h_vht()
1931 if (sta->deflink.bandwidth == IEEE80211_STA_RX_BW_160) in ath11k_peer_assoc_h_vht()
1936 if (vht_nss > sta->deflink.rx_nss) { in ath11k_peer_assoc_h_vht()
1938 for (nss_idx = sta->deflink.rx_nss - 1; nss_idx >= 0; nss_idx--) { in ath11k_peer_assoc_h_vht()
1948 sta->deflink.rx_nss, sta->addr); in ath11k_peer_assoc_h_vht()
1949 vht_mcs_mask[sta->deflink.rx_nss - 1] = vht_mcs_mask[vht_nss - 1]; in ath11k_peer_assoc_h_vht()
1963 arg->peer_nss = min(sta->deflink.rx_nss, max_nss); in ath11k_peer_assoc_h_vht()
2082 const struct ieee80211_sta_he_cap *he_cap = &sta->deflink.he_cap; in ath11k_peer_assoc_h_he()
2140 arg->peer_nss = min(sta->deflink.rx_nss, max_nss); in ath11k_peer_assoc_h_he()
2172 if (sta->deflink.vht_cap.vht_supported) in ath11k_peer_assoc_h_he()
2175 else if (sta->deflink.ht_cap.ht_supported) in ath11k_peer_assoc_h_he()
2218 if (he_nss > sta->deflink.rx_nss) { in ath11k_peer_assoc_h_he()
2220 for (nss_idx = sta->deflink.rx_nss - 1; nss_idx >= 0; nss_idx--) { in ath11k_peer_assoc_h_he()
2230 sta->deflink.rx_nss, sta->addr); in ath11k_peer_assoc_h_he()
2231 he_mcs_mask[sta->deflink.rx_nss - 1] = he_mcs_mask[he_nss - 1]; in ath11k_peer_assoc_h_he()
2234 switch (sta->deflink.bandwidth) { in ath11k_peer_assoc_h_he()
2288 arg->peer_nss = min(sta->deflink.rx_nss, max_nss); in ath11k_peer_assoc_h_he()
2321 const struct ieee80211_sta_he_cap *he_cap = &sta->deflink.he_cap; in ath11k_peer_assoc_h_he_6ghz()
2331 if (!arg->he_flag || band != NL80211_BAND_6GHZ || !sta->deflink.he_6ghz_capa.capa) in ath11k_peer_assoc_h_he_6ghz()
2334 if (sta->deflink.bandwidth == IEEE80211_STA_RX_BW_40) in ath11k_peer_assoc_h_he_6ghz()
2337 if (sta->deflink.bandwidth == IEEE80211_STA_RX_BW_80) in ath11k_peer_assoc_h_he_6ghz()
2340 if (sta->deflink.bandwidth == IEEE80211_STA_RX_BW_160) in ath11k_peer_assoc_h_he_6ghz()
2343 arg->peer_he_caps_6ghz = le16_to_cpu(sta->deflink.he_6ghz_capa.capa); in ath11k_peer_assoc_h_he_6ghz()
2369 const struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in ath11k_peer_assoc_h_smps()
2372 if (!ht_cap->ht_supported && !sta->deflink.he_6ghz_capa.capa) in ath11k_peer_assoc_h_smps()
2379 smps = le16_get_bits(sta->deflink.he_6ghz_capa.capa, in ath11k_peer_assoc_h_smps()
2503 return sta->deflink.supp_rates[NL80211_BAND_2GHZ] >> in ath11k_mac_sta_has_ofdm_only()
2510 if (sta->deflink.bandwidth == IEEE80211_STA_RX_BW_160) { in ath11k_mac_get_phymode_vht()
2511 switch (sta->deflink.vht_cap.cap & in ath11k_mac_get_phymode_vht()
2523 if (sta->deflink.bandwidth == IEEE80211_STA_RX_BW_80) in ath11k_mac_get_phymode_vht()
2526 if (sta->deflink.bandwidth == IEEE80211_STA_RX_BW_40) in ath11k_mac_get_phymode_vht()
2529 if (sta->deflink.bandwidth == IEEE80211_STA_RX_BW_20) in ath11k_mac_get_phymode_vht()
2538 if (sta->deflink.bandwidth == IEEE80211_STA_RX_BW_160) { in ath11k_mac_get_phymode_he()
2539 if (sta->deflink.he_cap.he_cap_elem.phy_cap_info[0] & in ath11k_mac_get_phymode_he()
2542 else if (sta->deflink.he_cap.he_cap_elem.phy_cap_info[0] & in ath11k_mac_get_phymode_he()
2549 if (sta->deflink.bandwidth == IEEE80211_STA_RX_BW_80) in ath11k_mac_get_phymode_he()
2552 if (sta->deflink.bandwidth == IEEE80211_STA_RX_BW_40) in ath11k_mac_get_phymode_he()
2555 if (sta->deflink.bandwidth == IEEE80211_STA_RX_BW_20) in ath11k_mac_get_phymode_he()
2584 if (sta->deflink.he_cap.has_he && in ath11k_peer_assoc_h_phymode()
2586 if (sta->deflink.bandwidth == IEEE80211_STA_RX_BW_80) in ath11k_peer_assoc_h_phymode()
2588 else if (sta->deflink.bandwidth == IEEE80211_STA_RX_BW_40) in ath11k_peer_assoc_h_phymode()
2592 } else if (sta->deflink.vht_cap.vht_supported && in ath11k_peer_assoc_h_phymode()
2594 if (sta->deflink.bandwidth == IEEE80211_STA_RX_BW_40) in ath11k_peer_assoc_h_phymode()
2598 } else if (sta->deflink.ht_cap.ht_supported && in ath11k_peer_assoc_h_phymode()
2600 if (sta->deflink.bandwidth == IEEE80211_STA_RX_BW_40) in ath11k_peer_assoc_h_phymode()
2613 if (sta->deflink.he_cap.has_he && in ath11k_peer_assoc_h_phymode()
2616 } else if (sta->deflink.vht_cap.vht_supported && in ath11k_peer_assoc_h_phymode()
2619 } else if (sta->deflink.ht_cap.ht_supported && in ath11k_peer_assoc_h_phymode()
2621 if (sta->deflink.bandwidth >= IEEE80211_STA_RX_BW_40) in ath11k_peer_assoc_h_phymode()
2744 &ap_sta->deflink.ht_cap, in ath11k_bss_assoc()
2745 le16_to_cpu(ap_sta->deflink.he_6ghz_capa.capa)); in ath11k_bss_assoc()
4019 if (nss > sta->deflink.rx_nss) in ath11k_mac_set_peer_vht_fixed_rate()
4069 if (nss > sta->deflink.rx_nss) in ath11k_mac_set_peer_he_fixed_rate()
4136 if (sta->deflink.vht_cap.vht_supported && num_vht_rates == 1) { in ath11k_station_assoc()
4141 } else if (sta->deflink.he_cap.has_he && num_he_rates == 1) { in ath11k_station_assoc()
4155 &sta->deflink.ht_cap, in ath11k_station_assoc()
4156 le16_to_cpu(sta->deflink.he_6ghz_capa.capa)); in ath11k_station_assoc()
4318 if (sta->deflink.vht_cap.vht_supported && num_vht_rates == 1) { in ath11k_sta_rc_update_wk()
4321 } else if (sta->deflink.he_cap.has_he && num_he_rates == 1) { in ath11k_sta_rc_update_wk()
4645 if (sta->deflink.txpwr.type == NL80211_TX_POWER_AUTOMATIC) { in ath11k_mac_op_sta_set_txpwr()
4648 txpwr = sta->deflink.txpwr.power; in ath11k_mac_op_sta_set_txpwr()
4709 sta->addr, changed, sta->deflink.bandwidth, in ath11k_mac_op_sta_rc_update()
4710 sta->deflink.rx_nss, in ath11k_mac_op_sta_rc_update()
4711 sta->deflink.smps_mode); in ath11k_mac_op_sta_rc_update()
4718 switch (sta->deflink.bandwidth) { in ath11k_mac_op_sta_rc_update()
4733 sta->deflink.bandwidth, sta->addr); in ath11k_mac_op_sta_rc_update()
4742 arsta->nss = sta->deflink.rx_nss; in ath11k_mac_op_sta_rc_update()
4747 switch (sta->deflink.smps_mode) { in ath11k_mac_op_sta_rc_update()
4760 sta->deflink.smps_mode, sta->addr); in ath11k_mac_op_sta_rc_update()
7726 struct ieee80211_link_sta *deflink; in ath11k_mac_validate_vht_he_fixed_rate_settings() local
7749 deflink = &peer->sta->deflink; in ath11k_mac_validate_vht_he_fixed_rate_settings()
7751 if (vht_fixed_rate && (!deflink->vht_cap.vht_supported || in ath11k_mac_validate_vht_he_fixed_rate_settings()
7752 deflink->rx_nss < vht_nss)) { in ath11k_mac_validate_vht_he_fixed_rate_settings()
7757 if (he_fixed_rate && (!deflink->he_cap.has_he || in ath11k_mac_validate_vht_he_fixed_rate_settings()
7758 deflink->rx_nss < he_nss)) { in ath11k_mac_validate_vht_he_fixed_rate_settings()