| /freebsd-14.2/sys/contrib/dev/iwlwifi/mvm/ |
| H A D | rs-fw.c | 43 struct ieee80211_sta_ht_cap *ht_cap = &link_sta->ht_cap; in rs_fw_sgi_cw_support() local 51 if (ht_cap->cap & IEEE80211_HT_CAP_SGI_20) in rs_fw_sgi_cw_support() 53 if (ht_cap->cap & IEEE80211_HT_CAP_SGI_40) in rs_fw_sgi_cw_support() 68 struct ieee80211_sta_ht_cap *ht_cap = &link_sta->ht_cap; in rs_fw_get_config_flags() local 82 else if (ht_cap->cap & IEEE80211_HT_CAP_RX_STBC) in rs_fw_get_config_flags() 376 const struct ieee80211_sta_ht_cap *ht_cap = &link_sta->ht_cap; in rs_fw_set_supp_rates() local 399 } else if (ht_cap->ht_supported) { in rs_fw_set_supp_rates() 402 cpu_to_le16(ht_cap->mcs.rx_mask[0]); in rs_fw_set_supp_rates() 410 cpu_to_le16(ht_cap->mcs.rx_mask[1]); in rs_fw_set_supp_rates() 528 const struct ieee80211_sta_ht_cap *ht_cap = &link_sta->ht_cap; in rs_fw_get_max_amsdu_len() local [all …]
|
| H A D | sf.c | 120 if (link_sta->ht_cap.ht_supported || in iwl_mvm_fill_sf_command()
|
| /freebsd-14.2/sys/contrib/dev/rtw88/ |
| H A D | main.c | 151 .ht_cap = {0}, 165 .ht_cap = {0}, 1565 ht_cap->ht_supported = true; in rtw_init_ht_cap() 1566 ht_cap->cap = 0; in rtw_init_ht_cap() 1567 ht_cap->cap |= IEEE80211_HT_CAP_SGI_20 | in rtw_init_ht_cap() 1584 ht_cap->mcs.rx_mask[0] = 0xFF; in rtw_init_ht_cap() 1585 ht_cap->mcs.rx_mask[1] = 0xFF; in rtw_init_ht_cap() 1586 ht_cap->mcs.rx_mask[4] = 0x01; in rtw_init_ht_cap() 1589 ht_cap->mcs.rx_mask[0] = 0xFF; in rtw_init_ht_cap() 1590 ht_cap->mcs.rx_mask[1] = 0x00; in rtw_init_ht_cap() [all …]
|
| H A D | tx.c | 93 u8 exp = sta->deflink.ht_cap.ampdu_factor; in get_tx_ampdu_factor() 104 return sta->deflink.ht_cap.ampdu_density; in get_tx_ampdu_density() 112 if (rtwdev->hal.rf_type == RF_2T2R && sta->deflink.ht_cap.mcs.rx_mask[1] != 0) in get_highest_ht_tx_rate() 383 else if (sta->deflink.ht_cap.ht_supported) in rtw_tx_data_pkt_info_update()
|
| /freebsd-14.2/sys/contrib/dev/athk/ath12k/ |
| H A D | mac.c | 1359 const struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in ath12k_peer_assoc_h_ht() local 1420 if (ht_cap->mcs.rx_mask[1] && ht_cap->mcs.rx_mask[2]) in ath12k_peer_assoc_h_ht() 1767 const struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in ath12k_peer_assoc_h_smps() local 4077 return ht_cap; in ath12k_create_ht_cap() 4098 ht_cap.cap |= smps; in ath12k_create_ht_cap() 4113 ht_cap.cap |= stbc; in ath12k_create_ht_cap() 4132 return ht_cap; in ath12k_create_ht_cap() 4272 u32 ht_cap; in ath12k_mac_setup_ht_vht_cap() local 4282 band->ht_cap = ath12k_create_ht_cap(ar, ht_cap, in ath12k_mac_setup_ht_vht_cap() 4293 band->ht_cap = ath12k_create_ht_cap(ar, ht_cap, in ath12k_mac_setup_ht_vht_cap() [all …]
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/ |
| H A D | mt76_connac_mcu.c | 785 struct ieee80211_sta_ht_cap *ht_cap; in mt76_connac_get_phy_mode_v2() local 791 ht_cap = &sta->deflink.ht_cap; in mt76_connac_get_phy_mode_v2() 798 ht_cap = &sband->ht_cap; in mt76_connac_get_phy_mode_v2() 806 if (ht_cap->ht_supported) in mt76_connac_get_phy_mode_v2() 814 if (ht_cap->ht_supported) in mt76_connac_get_phy_mode_v2() 847 ht->ht_cap = cpu_to_le16(sta->deflink.ht_cap.cap); in mt76_connac_mcu_sta_tlv() 1288 struct ieee80211_sta_ht_cap *ht_cap; in mt76_connac_get_phy_mode() local 1295 ht_cap = &sta->deflink.ht_cap; in mt76_connac_get_phy_mode() 1302 ht_cap = &sband->ht_cap; in mt76_connac_get_phy_mode() 1310 if (ht_cap->ht_supported) in mt76_connac_get_phy_mode() [all …]
|
| H A D | mac80211.c | 257 struct ieee80211_sta_ht_cap *ht_cap = &sband->ht_cap; in mt76_init_stream_cap() local 263 ht_cap->cap |= IEEE80211_HT_CAP_TX_STBC; in mt76_init_stream_cap() 265 ht_cap->cap &= ~IEEE80211_HT_CAP_TX_STBC; in mt76_init_stream_cap() 268 ht_cap->mcs.rx_mask[i] = i < nstream ? 0xff : 0; in mt76_init_stream_cap() 314 struct ieee80211_sta_ht_cap *ht_cap; in mt76_init_sband() local 337 ht_cap = &sband->ht_cap; in mt76_init_sband() 338 ht_cap->ht_supported = true; in mt76_init_sband() 339 ht_cap->cap |= IEEE80211_HT_CAP_SUP_WIDTH_20_40 | in mt76_init_sband() 345 ht_cap->mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; in mt76_init_sband() 346 ht_cap->ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K; in mt76_init_sband()
|
| H A D | mt76x02_util.c | 189 dev->mphy.sband_2g.sband.ht_cap.cap |= in mt76x02_init_device() 191 dev->mphy.sband_5g.sband.ht_cap.cap |= in mt76x02_init_device()
|
| /freebsd-14.2/sys/contrib/dev/athk/ath11k/ |
| H A D | mac.c | 1869 const struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in ath11k_peer_assoc_h_ht() local 1938 if (ht_cap->mcs.rx_mask[1] && ht_cap->mcs.rx_mask[2]) in ath11k_peer_assoc_h_ht() 2553 const struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in ath11k_peer_assoc_h_smps() local 5396 return ht_cap; in ath11k_create_ht_cap() 5417 ht_cap.cap |= smps; in ath11k_create_ht_cap() 5432 ht_cap.cap |= stbc; in ath11k_create_ht_cap() 5451 return ht_cap; in ath11k_create_ht_cap() 5607 u32 ht_cap; in ath11k_mac_setup_ht_vht_cap() local 5617 band->ht_cap = ath11k_create_ht_cap(ar, ht_cap, in ath11k_mac_setup_ht_vht_cap() 5628 band->ht_cap = ath11k_create_ht_cap(ar, ht_cap, in ath11k_mac_setup_ht_vht_cap() [all …]
|
| /freebsd-14.2/sys/contrib/dev/athk/ath10k/ |
| H A D | mac.c | 2308 const struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in ath10k_peer_assoc_h_ht() local 2373 if (ht_cap->mcs.rx_mask[1] && ht_cap->mcs.rx_mask[2]) in ath10k_peer_assoc_h_ht() 3094 ht_cap = ap_sta->deflink.ht_cap; in ath10k_bss_assoc() 4938 return ht_cap; in ath10k_get_ht_cap() 4945 ht_cap.cap |= in ath10k_get_ht_cap() 4960 ht_cap.cap |= smps; in ath10k_get_ht_cap() 4975 ht_cap.cap |= stbc; in ath10k_get_ht_cap() 4996 return ht_cap; in ath10k_get_ht_cap() 5010 band->ht_cap = ht_cap; in ath10k_mac_setup_ht_vht_cap() 5014 band->ht_cap = ht_cap; in ath10k_mac_setup_ht_vht_cap() [all …]
|
| /freebsd-14.2/contrib/wpa/src/ap/ |
| H A D | ieee802_11_ht.c | 494 struct ieee80211_ht_capabilities *ht_cap, in hostapd_get_ht_capab() argument 499 if (ht_cap == NULL) in hostapd_get_ht_capab() 501 os_memcpy(neg_ht_cap, ht_cap, sizeof(*neg_ht_cap)); in hostapd_get_ht_capab()
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7921/ |
| H A D | init.c | 250 dev->mphy.sband_2g.sband.ht_cap.cap |= in mt7921_register_device() 253 dev->mphy.sband_5g.sband.ht_cap.cap |= in mt7921_register_device()
|
| H A D | main.c | 161 struct ieee80211_sta_ht_cap *ht_cap = &sband->ht_cap; in mt7921_init_he_caps() local 165 cap = u16_encode_bits(ht_cap->ampdu_density, in mt7921_init_he_caps()
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7996/ |
| H A D | mcu.c | 1053 if (!sta->deflink.ht_cap.ht_supported) in mt7996_mcu_sta_ht_tlv() 1059 ht->ht_cap = cpu_to_le16(sta->deflink.ht_cap.cap); in mt7996_mcu_sta_ht_tlv() 1444 else if (sta->deflink.ht_cap.ht_supported) in mt7996_mcu_sta_bfer_tlv() 1528 if (sta->deflink.ht_cap.ht_supported) { in mt7996_mcu_sta_phy_tlv() 1529 af = sta->deflink.ht_cap.ampdu_factor; in mt7996_mcu_sta_phy_tlv() 1530 mm = sta->deflink.ht_cap.ampdu_density; in mt7996_mcu_sta_phy_tlv() 1684 if (sta->deflink.ht_cap.ht_supported) { in mt7996_mcu_sta_rate_ctrl_tlv() 1686 ra->af = sta->deflink.ht_cap.ampdu_factor; in mt7996_mcu_sta_rate_ctrl_tlv() 1690 if (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_SGI_20) in mt7996_mcu_sta_rate_ctrl_tlv() 1692 if (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_SGI_40) in mt7996_mcu_sta_rate_ctrl_tlv() [all …]
|
| H A D | init.c | 210 phy->mt76->sband_2g.sband.ht_cap.cap |= in mt7996_init_wiphy() 213 phy->mt76->sband_2g.sband.ht_cap.ampdu_density = in mt7996_init_wiphy() 218 phy->mt76->sband_5g.sband.ht_cap.cap |= in mt7996_init_wiphy() 227 phy->mt76->sband_5g.sband.ht_cap.ampdu_density = in mt7996_init_wiphy()
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7915/ |
| H A D | mcu.c | 919 if (!sta->deflink.ht_cap.ht_supported) in mt7915_mcu_sta_ht_tlv() 925 ht->ht_cap = cpu_to_le16(sta->deflink.ht_cap.cap); in mt7915_mcu_sta_ht_tlv() 1220 else if (sta->deflink.ht_cap.ht_supported) in mt7915_mcu_sta_bfer_tlv() 1429 } else if (sta->deflink.ht_cap.ht_supported) { in mt7915_mcu_add_rate_ctrl_fixed() 1528 if (sta->deflink.ht_cap.ht_supported) { in mt7915_mcu_sta_rate_ctrl_tlv() 1530 ra->af = sta->deflink.ht_cap.ampdu_factor; in mt7915_mcu_sta_rate_ctrl_tlv() 1534 if (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_SGI_20) in mt7915_mcu_sta_rate_ctrl_tlv() 1536 if (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_SGI_40) in mt7915_mcu_sta_rate_ctrl_tlv() 1538 if (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_TX_STBC) in mt7915_mcu_sta_rate_ctrl_tlv() 1540 if (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_RX_STBC) in mt7915_mcu_sta_rate_ctrl_tlv() [all …]
|
| H A D | init.c | 410 phy->mt76->sband_2g.sband.ht_cap.cap |= in mt7915_init_wiphy() 413 phy->mt76->sband_2g.sband.ht_cap.ampdu_density = in mt7915_init_wiphy() 421 phy->mt76->sband_5g.sband.ht_cap.cap |= in mt7915_init_wiphy() 424 phy->mt76->sband_5g.sband.ht_cap.ampdu_density = in mt7915_init_wiphy()
|
| /freebsd-14.2/sys/contrib/dev/rtw89/ |
| H A D | core.c | 210 .ht_cap = {0}, 222 .ht_cap = {0}, 444 4 << sta->deflink.ht_cap.ampdu_factor) - 1); in rtw89_core_tx_update_ampdu_info() 3150 struct ieee80211_sta_ht_cap *ht_cap) in rtw89_init_ht_cap() argument 3159 ht_cap->ht_supported = true; in rtw89_init_ht_cap() 3160 ht_cap->cap = 0; in rtw89_init_ht_cap() 3161 ht_cap->cap |= IEEE80211_HT_CAP_SGI_20 | in rtw89_init_ht_cap() 3165 ht_cap->cap |= IEEE80211_HT_CAP_LDPC_CODING; in rtw89_init_ht_cap() 3173 ht_cap->mcs.rx_mask[i] = 0xFF; in rtw89_init_ht_cap() 3174 ht_cap->mcs.rx_mask[4] = 0x01; in rtw89_init_ht_cap() [all …]
|
| H A D | phy.c | 178 } else if (sta->deflink.ht_cap.ht_supported) { in rtw89_phy_ra_mask_cfg() 281 } else if (sta->deflink.ht_cap.ht_supported) { in rtw89_phy_ra_sta_update() 285 ((u64)sta->deflink.ht_cap.mcs.rx_mask[2] << 36) | in rtw89_phy_ra_sta_update() 286 (sta->deflink.ht_cap.mcs.rx_mask[1] << 24) | in rtw89_phy_ra_sta_update() 287 (sta->deflink.ht_cap.mcs.rx_mask[0] << 12); in rtw89_phy_ra_sta_update() 289 if (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_RX_STBC) in rtw89_phy_ra_sta_update() 291 if (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_LDPC_CODING) in rtw89_phy_ra_sta_update() 350 sgi = sta->deflink.ht_cap.ht_supported && in rtw89_phy_ra_sta_update() 351 (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_SGI_40); in rtw89_phy_ra_sta_update() 355 sgi = sta->deflink.ht_cap.ht_supported && in rtw89_phy_ra_sta_update() [all …]
|
| /freebsd-14.2/sys/contrib/dev/iwlwifi/ |
| H A D | iwl-nvm-parse.c | 842 struct ieee80211_sta_ht_cap ht_cap; in iwl_init_he_6ghz_capa() local 853 iwl_init_ht_hw_capab(trans, data, &ht_cap, NL80211_BAND_5GHZ, in iwl_init_he_6ghz_capa() 855 WARN_ON(!ht_cap.ht_supported); in iwl_init_he_6ghz_capa() 860 u16_encode_bits(ht_cap.ampdu_density, in iwl_init_he_6ghz_capa() 1108 iwl_init_ht_hw_capab(trans, data, &sband->ht_cap, NL80211_BAND_2GHZ, in iwl_init_sbands() 1121 iwl_init_ht_hw_capab(trans, data, &sband->ht_cap, NL80211_BAND_5GHZ, in iwl_init_sbands()
|
| H A D | iwl-eeprom-parse.c | 772 iwl_init_ht_hw_capab(trans, data, &sband->ht_cap, NL80211_BAND_2GHZ, in iwl_init_sbands() 781 iwl_init_ht_hw_capab(trans, data, &sband->ht_cap, NL80211_BAND_5GHZ, in iwl_init_sbands()
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7603/ |
| H A D | mac.c | 340 ampdu_density = sta->deflink.ht_cap.ampdu_density; in mt7603_wtbl_update_cap() 347 sta->deflink.ht_cap.ampdu_factor) | in mt7603_wtbl_update_cap() 349 sta->deflink.ht_cap.ampdu_density) | in mt7603_wtbl_update_cap() 352 if (sta->deflink.ht_cap.cap) in mt7603_wtbl_update_cap() 363 if (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_SGI_20) in mt7603_wtbl_update_cap() 365 if (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_SGI_40) in mt7603_wtbl_update_cap()
|
| /freebsd-14.2/contrib/wpa/src/common/ |
| H A D | hw_features_common.c | 366 struct ieee80211_ht_capabilities *ht_cap = in check_40mhz_2g4() local 370 if (le_to_host16(ht_cap->ht_capabilities_info) & in check_40mhz_2g4()
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7615/ |
| H A D | init.c | 416 phy->mt76->sband_2g.sband.ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING; in mt7615_init_wiphy() 417 phy->mt76->sband_5g.sband.ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING; in mt7615_init_wiphy()
|
| /freebsd-14.2/sys/compat/linuxkpi/common/src/ |
| H A D | linux_80211.c | 173 sta->deflink.ht_cap.ht_supported = true; in lkpi_sta_sync_ht_from_ni() 178 if (sta->deflink.ht_cap.ampdu_density > vap->iv_ampdu_density) in lkpi_sta_sync_ht_from_ni() 179 sta->deflink.ht_cap.ampdu_density = vap->iv_ampdu_density; in lkpi_sta_sync_ht_from_ni() 181 if (sta->deflink.ht_cap.ampdu_factor > vap->iv_ampdu_rxmax) in lkpi_sta_sync_ht_from_ni() 182 sta->deflink.ht_cap.ampdu_factor = vap->iv_ampdu_rxmax; in lkpi_sta_sync_ht_from_ni() 190 sta->deflink.ht_cap.cap = htcap->cap_info; in lkpi_sta_sync_ht_from_ni() 191 sta->deflink.ht_cap.mcs = htcap->mcs; in lkpi_sta_sync_ht_from_ni() 4216 struct ieee80211_sta_ht_cap *ht_cap; in lkpi_ic_getradiocaps_ht() local 4218 ht_cap = &hw->wiphy->bands[band]->ht_cap; in lkpi_ic_getradiocaps_ht() 4219 if (!ht_cap->ht_supported) in lkpi_ic_getradiocaps_ht() [all …]
|