Lines Matching refs:vht_cap
2144 const struct ieee80211_sta_vht_cap *vht_cap = &sta->deflink.vht_cap; in ath11k_peer_assoc_h_vht() local
2158 if (!vht_cap->vht_supported) in ath11k_peer_assoc_h_vht()
2175 arg->peer_vht_caps = vht_cap->cap; in ath11k_peer_assoc_h_vht()
2177 ampdu_factor = (vht_cap->cap & in ath11k_peer_assoc_h_vht()
2218 vht_mcs = __le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map) >> in ath11k_peer_assoc_h_vht()
2226 arg->rx_max_rate = __le16_to_cpu(vht_cap->vht_mcs.rx_highest); in ath11k_peer_assoc_h_vht()
2227 arg->rx_mcs_set = __le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map); in ath11k_peer_assoc_h_vht()
2228 arg->tx_max_rate = __le16_to_cpu(vht_cap->vht_mcs.tx_highest); in ath11k_peer_assoc_h_vht()
2230 __le16_to_cpu(vht_cap->vht_mcs.tx_mcs_map), vht_mcs_mask); in ath11k_peer_assoc_h_vht()
2438 if (sta->deflink.vht_cap.vht_supported) in ath11k_peer_assoc_h_he()
2777 switch (sta->deflink.vht_cap.cap & in ath11k_mac_get_phymode_vht()
2858 } else if (sta->deflink.vht_cap.vht_supported && in ath11k_peer_assoc_h_phymode()
2882 } else if (sta->deflink.vht_cap.vht_supported && in ath11k_peer_assoc_h_phymode()
4676 if (sta->deflink.vht_cap.vht_supported && num_vht_rates == 1) { in ath11k_station_assoc()
4904 if (sta->deflink.vht_cap.vht_supported && num_vht_rates == 1) { in ath11k_sta_rc_update_wk()
5268 u32 ar_vht_cap = ar->pdev->cap.vht_cap; in ath11k_create_ht_cap()
5335 u32 vht_cap = ar->pdev->cap.vht_cap; in ath11k_mac_set_txbf_conf() local
5338 if (vht_cap & (IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE)) { in ath11k_mac_set_txbf_conf()
5339 nsts = vht_cap & IEEE80211_VHT_CAP_BEAMFORMEE_STS_MASK; in ath11k_mac_set_txbf_conf()
5346 if (vht_cap & (IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE)) { in ath11k_mac_set_txbf_conf()
5347 sound_dim = vht_cap & in ath11k_mac_set_txbf_conf()
5358 if (vht_cap & IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE) { in ath11k_mac_set_txbf_conf()
5361 if ((vht_cap & IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE) && in ath11k_mac_set_txbf_conf()
5368 if (vht_cap & IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE) { in ath11k_mac_set_txbf_conf()
5371 if ((vht_cap & IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE) && in ath11k_mac_set_txbf_conf()
5380 static void ath11k_set_vht_txbf_cap(struct ath11k *ar, u32 *vht_cap) in ath11k_set_vht_txbf_cap() argument
5385 subfer = !!(*vht_cap & (IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE)); in ath11k_set_vht_txbf_cap()
5386 subfee = !!(*vht_cap & (IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE)); in ath11k_set_vht_txbf_cap()
5389 *vht_cap &= ~(IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE); in ath11k_set_vht_txbf_cap()
5394 *vht_cap &= ~(IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE); in ath11k_set_vht_txbf_cap()
5400 *vht_cap &= ~(IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE); in ath11k_set_vht_txbf_cap()
5404 *vht_cap &= ~(IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE); in ath11k_set_vht_txbf_cap()
5406 sound_dim = (*vht_cap & IEEE80211_VHT_CAP_SOUNDING_DIMENSIONS_MASK); in ath11k_set_vht_txbf_cap()
5408 *vht_cap &= ~IEEE80211_VHT_CAP_SOUNDING_DIMENSIONS_MASK; in ath11k_set_vht_txbf_cap()
5410 nsts = (*vht_cap & IEEE80211_VHT_CAP_BEAMFORMEE_STS_MASK); in ath11k_set_vht_txbf_cap()
5412 *vht_cap &= ~IEEE80211_VHT_CAP_BEAMFORMEE_STS_MASK; in ath11k_set_vht_txbf_cap()
5421 *vht_cap |= sound_dim; in ath11k_set_vht_txbf_cap()
5431 *vht_cap |= nsts; in ath11k_set_vht_txbf_cap()
5439 struct ieee80211_sta_vht_cap vht_cap = {0}; in ath11k_create_vht_cap() local
5443 vht_cap.vht_supported = 1; in ath11k_create_vht_cap()
5444 vht_cap.cap = ar->pdev->cap.vht_cap; in ath11k_create_vht_cap()
5447 vht_cap.vht_mcs.tx_highest |= in ath11k_create_vht_cap()
5450 ath11k_set_vht_txbf_cap(ar, &vht_cap.cap); in ath11k_create_vht_cap()
5467 vht_cap.cap &= ~IEEE80211_VHT_CAP_TXSTBC; in ath11k_create_vht_cap()
5469 vht_cap.vht_mcs.rx_mcs_map = cpu_to_le16(rxmcs_map); in ath11k_create_vht_cap()
5470 vht_cap.vht_mcs.tx_mcs_map = cpu_to_le16(txmcs_map); in ath11k_create_vht_cap()
5472 return vht_cap; in ath11k_create_vht_cap()
5505 band->vht_cap = ath11k_create_vht_cap(ar, rate_cap_tx_chainmask, in ath11k_mac_setup_ht_vht_cap()
5634 pcap->vht_cap); in ath11k_mac_setup_he_6ghz_cap()
5637 val = FIELD_GET(IEEE80211_VHT_CAP_MAX_MPDU_MASK, pcap->vht_cap); in ath11k_mac_setup_he_6ghz_cap()
5640 if (pcap->vht_cap & IEEE80211_VHT_CAP_RX_ANTENNA_PATTERN) in ath11k_mac_setup_he_6ghz_cap()
5642 if (pcap->vht_cap & IEEE80211_VHT_CAP_TX_ANTENNA_PATTERN) in ath11k_mac_setup_he_6ghz_cap()
8236 u16 vht_mcs_map = le16_to_cpu(sband->vht_cap.vht_mcs.tx_mcs_map); in ath11k_mac_bitrate_mask_get_single_nss()
8608 if (vht_fixed_rate && (!deflink->vht_cap.vht_supported || in ath11k_mac_validate_vht_he_fixed_rate_settings()