/freebsd/sys/contrib/dev/iwlwifi/mvm/ |
H A D | rs-fw.c | 44 struct ieee80211_sta_vht_cap *vht_cap = &link_sta->vht_cap; in rs_fw_sgi_cw_support() local 55 if (vht_cap->cap & IEEE80211_VHT_CAP_SHORT_GI_80) in rs_fw_sgi_cw_support() 57 if (vht_cap->cap & IEEE80211_VHT_CAP_SHORT_GI_160) in rs_fw_sgi_cw_support() 69 struct ieee80211_sta_vht_cap *vht_cap = &link_sta->vht_cap; in rs_fw_get_config_flags() local 71 bool vht_ena = vht_cap->vht_supported; in rs_fw_get_config_flags() 80 else if (vht_cap->cap & IEEE80211_VHT_CAP_RXSTBC_MASK) in rs_fw_get_config_flags() 88 (vht_ena && (vht_cap->cap & IEEE80211_VHT_CAP_RXLDPC)))) in rs_fw_get_config_flags() 113 int rs_fw_vht_highest_rx_mcs_index(const struct ieee80211_sta_vht_cap *vht_cap, in rs_fw_vht_highest_rx_mcs_index() argument 137 rs_fw_vht_set_enabled_rates(const struct ieee80211_link_sta * link_sta,const struct ieee80211_sta_vht_cap * vht_cap,struct iwl_tlc_config_cmd_v4 * cmd) rs_fw_vht_set_enabled_rates() argument 377 const struct ieee80211_sta_vht_cap *vht_cap = &link_sta->vht_cap; rs_fw_set_supp_rates() local 527 const struct ieee80211_sta_vht_cap *vht_cap = &link_sta->vht_cap; rs_fw_get_max_amsdu_len() local [all...] |
H A D | sf.c | 121 link_sta->vht_cap.vht_supported || in iwl_mvm_fill_sf_command()
|
/freebsd/sys/contrib/dev/iwlwifi/ |
H A D | iwl-nvm-parse.c | 498 struct ieee80211_sta_vht_cap *vht_cap, in iwl_init_vht_hw_capab() 505 vht_cap->vht_supported = true; in iwl_init_vht_hw_capab() 507 vht_cap->cap = IEEE80211_VHT_CAP_SHORT_GI_80 | in iwl_init_vht_hw_capab() 515 vht_cap->cap &= ~IEEE80211_VHT_CAP_RXSTBC_MASK; in iwl_init_vht_hw_capab() 518 vht_cap->cap |= IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ | in iwl_init_vht_hw_capab() 522 vht_cap->cap |= IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE; in iwl_init_vht_hw_capab() 525 vht_cap->cap |= IEEE80211_VHT_CAP_RXLDPC; in iwl_init_vht_hw_capab() 533 vht_cap->cap |= IEEE80211_VHT_CAP_TXSTBC; in iwl_init_vht_hw_capab() 535 vht_cap->cap |= IEEE80211_VHT_CAP_TX_ANTENNA_PATTERN; in iwl_init_vht_hw_capab() 540 vht_cap in iwl_init_vht_hw_capab() 485 iwl_init_vht_hw_capab(struct iwl_trans * trans,struct iwl_nvm_data * data,struct ieee80211_sta_vht_cap * vht_cap,u8 tx_chains,u8 rx_chains) iwl_init_vht_hw_capab() argument 843 struct ieee80211_sta_vht_cap vht_cap = {}; iwl_init_he_6ghz_capa() local [all...] |
/freebsd/contrib/wpa/src/ap/ |
H A D | ieee802_11_vht.c | 146 const struct ieee80211_vht_capabilities *vht_cap; in check_valid_vht_mcs() local 162 vht_cap = (const struct ieee80211_vht_capabilities *) sta_vht_capab; in check_valid_vht_mcs() 165 sta_rx_mcs_set = le_to_host16(vht_cap->vht_supported_mcs_set.rx_map); in check_valid_vht_mcs() 312 struct ieee80211_vht_capabilities *vht_cap, in hostapd_get_vht_capab() argument 317 if (vht_cap == NULL) in hostapd_get_vht_capab() 319 os_memcpy(neg_vht_cap, vht_cap, sizeof(*neg_vht_cap)); in hostapd_get_vht_capab()
|
H A D | ieee802_11.h | 82 struct ieee80211_vht_capabilities *vht_cap,
|
/freebsd/sys/contrib/dev/rtw88/ |
H A D | bf.c | 39 struct ieee80211_sta_vht_cap *vht_cap; in rtw_bf_assoc() local 64 ic_vht_cap = &hw->wiphy->bands[NL80211_BAND_5GHZ]->vht_cap; in rtw_bf_assoc() 65 vht_cap = &sta->deflink.vht_cap; in rtw_bf_assoc() 70 (vht_cap->cap & IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE)) { in rtw_bf_assoc() 84 (vht_cap->cap & IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE)) { in rtw_bf_assoc() 90 sound_dim = vht_cap->cap & in rtw_bf_assoc()
|
H A D | main.c | 162 .vht_cap = {0}, 176 .vht_cap = {0}, 1014 u16 mcs_map = le16_to_cpu(sta->deflink.vht_cap.vht_mcs.rx_mcs_map); in get_vht_ra_mask() 1234 if (sta->deflink.vht_cap.vht_supported) { in rtw_update_sta_info() 1237 if (sta->deflink.vht_cap.cap & IEEE80211_VHT_CAP_RXSTBC_MASK) in rtw_update_sta_info() 1239 if (sta->deflink.vht_cap.cap & IEEE80211_VHT_CAP_RXLDPC) in rtw_update_sta_info() 1256 if (sta->deflink.vht_cap.vht_supported) { in rtw_update_sta_info() 1269 if (sta->deflink.vht_cap.vht_supported) { in rtw_update_sta_info() 1299 is_support_sgi = sta->deflink.vht_cap.vht_supported && in rtw_update_sta_info() 1300 (sta->deflink.vht_cap.cap & IEEE80211_VHT_CAP_SHORT_GI_80); in rtw_update_sta_info() [all …]
|
H A D | tx.c | 127 tx_mcs_map = le16_to_cpu(sta->deflink.vht_cap.vht_mcs.tx_mcs_map); in get_highest_vht_tx_rate() 381 if (sta->deflink.vht_cap.vht_supported) in rtw_tx_data_pkt_info_update()
|
/freebsd/sys/contrib/dev/athk/ath12k/ |
H A D | mac.c | 1520 const struct ieee80211_sta_vht_cap *vht_cap = &sta->deflink.vht_cap; in ath12k_peer_assoc_h_vht() local 1533 if (!vht_cap->vht_supported) in ath12k_peer_assoc_h_vht() 1550 arg->peer_vht_caps = vht_cap->cap; in ath12k_peer_assoc_h_vht() 1552 ampdu_factor = (vht_cap->cap & in ath12k_peer_assoc_h_vht() 1575 vht_mcs = __le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map) >> in ath12k_peer_assoc_h_vht() 1583 arg->rx_max_rate = __le16_to_cpu(vht_cap->vht_mcs.rx_highest); in ath12k_peer_assoc_h_vht() 1584 arg->rx_mcs_set = __le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map); in ath12k_peer_assoc_h_vht() 1585 arg->tx_max_rate = __le16_to_cpu(vht_cap->vht_mcs.tx_highest); in ath12k_peer_assoc_h_vht() 1587 tx_mcs_map = __le16_to_cpu(vht_cap->vht_mcs.tx_mcs_map); in ath12k_peer_assoc_h_vht() 1687 if (sta->deflink.vht_cap.vht_supported) in ath12k_peer_assoc_h_he() [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7615/ |
H A D | usb_sdio.c | 335 struct ieee80211_sta_vht_cap *vht_cap; in mt7663_usb_sdio_register_device() local 338 vht_cap = &dev->mphy.sband_5g.sband.vht_cap; in mt7663_usb_sdio_register_device() 339 vht_cap->cap &= ~IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454; in mt7663_usb_sdio_register_device()
|
H A D | init.c | 418 phy->mt76->sband_5g.sband.vht_cap.cap |= in mt7615_init_wiphy() 425 dev->mphy.sband_5g.sband.vht_cap.cap &= in mt7615_cap_dbdc_enable() 441 dev->mphy.sband_5g.sband.vht_cap.cap |= in mt7615_cap_dbdc_disable()
|
/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | mac80211.c | 259 struct ieee80211_sta_vht_cap *vht_cap; in mt76_init_stream_cap() local 273 vht_cap = &sband->vht_cap; in mt76_init_stream_cap() 275 vht_cap->cap |= IEEE80211_VHT_CAP_TXSTBC; in mt76_init_stream_cap() 277 vht_cap->cap &= ~IEEE80211_VHT_CAP_TXSTBC; in mt76_init_stream_cap() 278 vht_cap->cap |= IEEE80211_VHT_CAP_TX_ANTENNA_PATTERN | in mt76_init_stream_cap() 288 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in mt76_init_stream_cap() 289 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); in mt76_init_stream_cap() 291 vht_cap->vht_mcs.tx_highest |= in mt76_init_stream_cap() 313 struct ieee80211_sta_vht_cap *vht_cap; in mt76_init_sband() local 353 vht_cap = &sband->vht_cap; in mt76_init_sband() [all …]
|
H A D | mt76_connac_mcu.c | 786 struct ieee80211_sta_vht_cap *vht_cap; in mt76_connac_get_phy_mode_v2() local 792 vht_cap = &sta->deflink.vht_cap; in mt76_connac_get_phy_mode_v2() 799 vht_cap = &sband->vht_cap; in mt76_connac_get_phy_mode_v2() 817 if (vht_cap->vht_supported) in mt76_connac_get_phy_mode_v2() 851 if (sta->deflink.vht_cap.vht_supported) { in mt76_connac_mcu_sta_tlv() 858 vht->vht_cap = cpu_to_le32(sta->deflink.vht_cap.cap); in mt76_connac_mcu_sta_tlv() 859 vht->vht_rx_mcs_map = sta->deflink.vht_cap.vht_mcs.rx_mcs_map; in mt76_connac_mcu_sta_tlv() 860 vht->vht_tx_mcs_map = sta->deflink.vht_cap.vht_mcs.tx_mcs_map; in mt76_connac_mcu_sta_tlv() 918 if (sta->deflink.vht_cap.vht_supported) { in mt76_connac_mcu_sta_tlv() 968 if (sta->deflink.vht_cap.vht_supported || sta->deflink.he_6ghz_capa.capa) { in mt76_connac_mcu_wtbl_ht_tlv() [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/ |
H A D | init.c | 418 struct ieee80211_sta_vht_cap *vht_cap; in mt7915_init_wiphy() local 420 vht_cap = &phy->mt76->sband_5g.sband.vht_cap; in mt7915_init_wiphy() 428 vht_cap->cap |= in mt7915_init_wiphy() 433 vht_cap->cap |= in mt7915_init_wiphy() 437 vht_cap->cap |= in mt7915_init_wiphy() 442 vht_cap->cap |= in mt7915_init_wiphy() 863 cap = &phy->mt76->sband_5g.sband.vht_cap.cap; in mt7915_set_stream_vht_txbf_caps()
|
H A D | mcu.c | 118 u16 mcs_map = le16_to_cpu(sta->deflink.vht_cap.vht_mcs.rx_mcs_map); in mt7915_mcu_set_sta_vht_mcs() 881 if (sta->deflink.vht_cap.vht_supported) in mt7915_mcu_sta_muru_tlv() 883 !!(sta->deflink.vht_cap.cap & IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE); in mt7915_mcu_sta_muru_tlv() 934 if (!sta->deflink.vht_cap.vht_supported) in mt7915_mcu_sta_vht_tlv() 940 vht->vht_cap = cpu_to_le32(sta->deflink.vht_cap.cap); in mt7915_mcu_sta_vht_tlv() 941 vht->vht_rx_mcs_map = sta->deflink.vht_cap.vht_mcs.rx_mcs_map; in mt7915_mcu_sta_vht_tlv() 942 vht->vht_tx_mcs_map = sta->deflink.vht_cap.vht_mcs.tx_mcs_map; in mt7915_mcu_sta_vht_tlv() 1040 if (sta->deflink.vht_cap.vht_supported) { in mt7915_is_ebf_supported() 1041 u32 cap = sta->deflink.vht_cap.cap; in mt7915_is_ebf_supported() 1092 struct ieee80211_sta_vht_cap *pc = &sta->deflink.vht_cap; in mt7915_mcu_sta_bfer_vht() [all …]
|
/freebsd/sys/contrib/dev/athk/ath11k/ |
H A D | mac.c | 2066 const struct ieee80211_sta_vht_cap *vht_cap = &sta->deflink.vht_cap; in ath11k_peer_assoc_h_vht() local 2080 if (!vht_cap->vht_supported) in ath11k_peer_assoc_h_vht() 2097 arg->peer_vht_caps = vht_cap->cap; in ath11k_peer_assoc_h_vht() 2099 ampdu_factor = (vht_cap->cap & in ath11k_peer_assoc_h_vht() 2140 vht_mcs = __le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map) >> in ath11k_peer_assoc_h_vht() 2148 arg->rx_max_rate = __le16_to_cpu(vht_cap->vht_mcs.rx_highest); in ath11k_peer_assoc_h_vht() 2149 arg->rx_mcs_set = __le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map); in ath11k_peer_assoc_h_vht() 2150 arg->tx_max_rate = __le16_to_cpu(vht_cap->vht_mcs.tx_highest); in ath11k_peer_assoc_h_vht() 2152 __le16_to_cpu(vht_cap->vht_mcs.tx_mcs_map), vht_mcs_mask); in ath11k_peer_assoc_h_vht() 2356 if (sta->deflink.vht_cap.vht_supported) in ath11k_peer_assoc_h_he() [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
H A D | mcu.c | 147 u16 mcs, mcs_map = le16_to_cpu(sta->deflink.vht_cap.vht_mcs.rx_mcs_map); in mt7996_mcu_set_sta_vht_mcs() 1069 if (!sta->deflink.he_6ghz_capa.capa && !sta->deflink.vht_cap.vht_supported) in mt7996_mcu_sta_vht_tlv() 1075 vht->vht_cap = cpu_to_le32(sta->deflink.vht_cap.cap); in mt7996_mcu_sta_vht_tlv() 1076 vht->vht_rx_mcs_map = sta->deflink.vht_cap.vht_mcs.rx_mcs_map; in mt7996_mcu_sta_vht_tlv() 1077 vht->vht_tx_mcs_map = sta->deflink.vht_cap.vht_mcs.tx_mcs_map; in mt7996_mcu_sta_vht_tlv() 1138 if (sta->deflink.vht_cap.vht_supported) in mt7996_mcu_sta_muru_tlv() 1140 !!(sta->deflink.vht_cap.cap & IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE); in mt7996_mcu_sta_muru_tlv() 1206 if (sta->deflink.vht_cap.vht_supported) { in mt7996_is_ebf_supported() 1207 u32 cap = sta->deflink.vht_cap.cap; in mt7996_is_ebf_supported() 1258 struct ieee80211_sta_vht_cap *pc = &sta->deflink.vht_cap; in mt7996_mcu_sta_bfer_vht() [all …]
|
H A D | init.c | 222 phy->mt76->sband_5g.sband.vht_cap.cap |= in mt7996_init_wiphy() 506 cap = &phy->mt76->sband_5g.sband.vht_cap.cap; in mt7996_set_stream_vht_txbf_caps()
|
/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | mac.c | 2558 const struct ieee80211_sta_vht_cap *vht_cap = &sta->deflink.vht_cap; in ath10k_peer_assoc_h_vht() local 2571 if (!vht_cap->vht_supported) in ath10k_peer_assoc_h_vht() 2585 arg->peer_vht_caps = vht_cap->cap; in ath10k_peer_assoc_h_vht() 2587 ampdu_factor = (vht_cap->cap & in ath10k_peer_assoc_h_vht() 2610 vht_mcs = __le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map) >> in ath10k_peer_assoc_h_vht() 2619 __le16_to_cpu(vht_cap->vht_mcs.rx_highest); in ath10k_peer_assoc_h_vht() 2621 __le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map); in ath10k_peer_assoc_h_vht() 2623 __le16_to_cpu(vht_cap->vht_mcs.tx_highest); in ath10k_peer_assoc_h_vht() 2625 __le16_to_cpu(vht_cap->vht_mcs.tx_mcs_map), vht_mcs_mask); in ath10k_peer_assoc_h_vht() 2704 struct ieee80211_sta_vht_cap *vht_cap = &sta->deflink.vht_cap; in ath10k_mac_get_phymode_vht() local [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7921/ |
H A D | init.c | 256 dev->mphy.sband_5g.sband.vht_cap.cap |= in mt7921_register_device() 263 dev->mphy.sband_5g.sband.vht_cap.cap |= in mt7921_register_device()
|
H A D | main.c | 160 struct ieee80211_sta_vht_cap *vht_cap = &sband->vht_cap; in mt7921_init_he_caps() local 167 exp = u32_get_bits(vht_cap->cap, in mt7921_init_he_caps() 171 exp = u32_get_bits(vht_cap->cap, in mt7921_init_he_caps() 175 if (vht_cap->cap & IEEE80211_VHT_CAP_TX_ANTENNA_PATTERN) in mt7921_init_he_caps() 177 if (vht_cap->cap & IEEE80211_VHT_CAP_RX_ANTENNA_PATTERN) in mt7921_init_he_caps()
|
/freebsd/sys/contrib/dev/rtw89/ |
H A D | core.c | 248 .vht_cap = {0}, 260 .vht_cap = {0}, 3724 struct ieee80211_sta_vht_cap *vht_cap) in rtw89_init_vht_cap() argument 3751 vht_cap->vht_supported = true; in rtw89_init_vht_cap() 3752 vht_cap->cap = IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454 | in rtw89_init_vht_cap() 3758 vht_cap->cap |= IEEE80211_VHT_CAP_TXSTBC; in rtw89_init_vht_cap() 3759 vht_cap->cap |= IEEE80211_VHT_CAP_RXLDPC; in rtw89_init_vht_cap() 3760 vht_cap->cap |= IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE | in rtw89_init_vht_cap() 3762 vht_cap->cap |= sts_cap << IEEE80211_VHT_CAP_BEAMFORMEE_STS_SHIFT; in rtw89_init_vht_cap() 3764 vht_cap->cap |= IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ | in rtw89_init_vht_cap() [all …]
|
H A D | phy.c | 235 } else if (sta->deflink.vht_cap.vht_supported) { in rtw89_phy_ra_sta_update() 339 } else if (sta->deflink.vht_cap.vht_supported) { in rtw89_phy_ra_sta_update() 340 u16 mcs_map = le16_to_cpu(sta->deflink.vht_cap.vht_mcs.rx_mcs_map); in rtw89_phy_ra_sta_update() 347 if (sta->deflink.vht_cap.cap & IEEE80211_VHT_CAP_RXSTBC_MASK) in rtw89_phy_ra_sta_update() 349 if (sta->deflink.vht_cap.cap & IEEE80211_VHT_CAP_RXLDPC) in rtw89_phy_ra_sta_update() 410 sgi = sta->deflink.vht_cap.vht_supported && in rtw89_phy_ra_updata_sta() 411 (sta->deflink.vht_cap.cap & IEEE80211_VHT_CAP_SHORT_GI_160); in rtw89_phy_ra_updata_sta() 415 sgi = sta->deflink.vht_cap.vht_supported && in rtw89_phy_ra_updata_sta() 416 (sta->deflink.vht_cap.cap & IEEE80211_VHT_CAP_SHORT_GI_80); in rtw89_phy_ra_updata_sta()
|
/freebsd/sys/compat/linuxkpi/common/include/net/ |
H A D | mac80211.h | 755 struct ieee80211_sta_vht_cap vht_cap; member 1921 ieee80211_get_vht_max_nss(struct ieee80211_vht_cap *vht_cap, in ieee80211_get_vht_max_nss() argument 1946 map = le16toh(vht_cap->supp_mcs.rx_mcs_map); in ieee80211_get_vht_max_nss() 1963 if ((le16toh(vht_cap->supp_mcs.tx_mcs_map) & in ieee80211_get_vht_max_nss() 1967 supp_cw = le32_get_bits(vht_cap->vht_cap_info, in ieee80211_get_vht_max_nss() 1969 ext_nss_bw = le32_get_bits(vht_cap->vht_cap_info, in ieee80211_get_vht_max_nss()
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_80211.c | 446 sta->deflink.vht_cap.vht_supported = false; in lkpi_sta_sync_vht_from_ni() 450 sta->deflink.vht_cap.vht_supported = true; in lkpi_sta_sync_vht_from_ni() 452 sta->deflink.vht_cap.cap = ni->ni_vhtcap; in lkpi_sta_sync_vht_from_ni() 453 sta->deflink.vht_cap.vht_mcs = ni->ni_vht_mcsinfo; in lkpi_sta_sync_vht_from_ni() 462 width = (sta->deflink.vht_cap.cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK); in lkpi_sta_sync_vht_from_ni() 473 if ((sta->deflink.vht_cap.cap & IEEE80211_VHT_CAP_EXT_NSS_BW_MASK) != 0) in lkpi_sta_sync_vht_from_ni() 482 rx_mcs_map = sta->deflink.vht_cap.vht_mcs.rx_mcs_map; in lkpi_sta_sync_vht_from_ni() 494 switch (sta->deflink.vht_cap.cap & IEEE80211_VHT_CAP_MAX_MPDU_MASK) { in lkpi_sta_sync_vht_from_ni() 541 if (sta->deflink.vht_cap.vht_supported) in lkpi_get_max_rx_chains() 5382 if (hw->wiphy->bands[NL80211_BAND_5GHZ]->vht_cap.vht_supported){ [all …]
|