| /src/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() 87 ((ht_cap->cap & IEEE80211_HT_CAP_LDPC_CODING) || 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() [all …]
|
| H A D | sf.c | 120 if (link_sta->ht_cap.ht_supported || in iwl_mvm_fill_sf_command()
|
| /src/sys/contrib/dev/iwlwifi/mld/ |
| H A D | tlc.c | 40 struct ieee80211_sta_ht_cap *ht_cap = &link_sta->ht_cap; in iwl_mld_get_tlc_cmd_flags() local 54 else if (ht_cap->cap & IEEE80211_HT_CAP_RX_STBC) in iwl_mld_get_tlc_cmd_flags() 60 ((ht_cap->cap & IEEE80211_HT_CAP_LDPC_CODING) || in iwl_mld_get_tlc_cmd_flags() 110 struct ieee80211_sta_ht_cap *ht_cap = &link_sta->ht_cap; in iwl_mld_get_fw_sgi() local 122 if (ht_cap->cap & IEEE80211_HT_CAP_SGI_20) in iwl_mld_get_fw_sgi() 124 if (ht_cap->cap & IEEE80211_HT_CAP_SGI_40) in iwl_mld_get_fw_sgi() 413 const struct ieee80211_sta_ht_cap *ht_cap = &link_sta->ht_cap; in iwl_mld_fill_supp_rates() local 435 } else if (ht_cap->ht_supported) { in iwl_mld_fill_supp_rates() 438 cpu_to_le32(ht_cap->mcs.rx_mask[0]); in iwl_mld_fill_supp_rates() 446 cpu_to_le32(ht_cap->mcs.rx_mask[1]); in iwl_mld_fill_supp_rates()
|
| H A D | iface.c | 629 WARN_ON(!sband->ht_cap.ht_supported); in iwl_mld_handle_datapath_monitor_notif() 630 WARN_ON(!(sband->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40)); in iwl_mld_handle_datapath_monitor_notif() 631 sband->ht_cap.cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; in iwl_mld_handle_datapath_monitor_notif() 674 sband->ht_cap.cap |= IEEE80211_HT_CAP_SUP_WIDTH_20_40; in iwl_mld_reset_cca_40mhz_workaround()
|
| H A D | sta.c | 61 if (link_sta->ht_cap.ht_supported) { in iwl_mld_fill_ampdu_size_and_dens() 62 agg_size = link_sta->ht_cap.ampdu_factor; in iwl_mld_fill_ampdu_size_and_dens() 63 mpdu_dens = link_sta->ht_cap.ampdu_density; in iwl_mld_fill_ampdu_size_and_dens() 612 const struct ieee80211_sta_ht_cap *ht_cap = &link_sta->ht_cap; in iwl_mld_set_max_amsdu_len() local 620 !ht_cap->ht_supported || in iwl_mld_set_max_amsdu_len() 621 !(ht_cap->cap & IEEE80211_HT_CAP_MAX_AMSDU)) in iwl_mld_set_max_amsdu_len()
|
| /src/sys/contrib/dev/rtw88/ |
| H A D | main.c | 219 .ht_cap = {0}, 233 .ht_cap = {0}, 1318 } else if (sta->deflink.ht_cap.ht_supported) { in rtw_update_sta_info() 1319 ra_mask |= ((u64)sta->deflink.ht_cap.mcs.rx_mask[3] << 36) | in rtw_update_sta_info() 1320 ((u64)sta->deflink.ht_cap.mcs.rx_mask[2] << 28) | in rtw_update_sta_info() 1321 (sta->deflink.ht_cap.mcs.rx_mask[1] << 20) | in rtw_update_sta_info() 1322 (sta->deflink.ht_cap.mcs.rx_mask[0] << 12); in rtw_update_sta_info() 1323 if (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_RX_STBC) in rtw_update_sta_info() 1325 if (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_LDPC_CODING) in rtw_update_sta_info() 1341 } else if (sta->deflink.ht_cap.ht_supported) { in rtw_update_sta_info() [all …]
|
| H A D | tx.c | 98 u8 exp = sta->deflink.ht_cap.ampdu_factor; in get_tx_ampdu_factor() 109 return sta->deflink.ht_cap.ampdu_density; in get_tx_ampdu_density() 117 if (rtwdev->hal.rf_type == RF_2T2R && sta->deflink.ht_cap.mcs.rx_mask[1] != 0) in get_highest_ht_tx_rate() 389 else if (sta->deflink.ht_cap.ht_supported) in rtw_tx_data_pkt_info_update()
|
| /src/sys/contrib/dev/mediatek/mt76/mt7925/ |
| H A D | init.c | 260 dev->mphy.sband_2g.sband.ht_cap.cap |= in mt7925_register_device() 263 dev->mphy.sband_2g.sband.ht_cap.ampdu_density = in mt7925_register_device() 265 dev->mphy.sband_5g.sband.ht_cap.cap |= in mt7925_register_device() 268 dev->mphy.sband_2g.sband.ht_cap.ampdu_density = in mt7925_register_device()
|
| /src/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 1373 if (!ht_cap->ht_supported) in ath12k_peer_assoc_h_ht() 1385 ht_cap->ampdu_factor)) - 1; in ath12k_peer_assoc_h_ht() 1388 ath12k_parse_mpdudensity(ht_cap->ampdu_density); in ath12k_peer_assoc_h_ht() 1390 arg->peer_ht_caps = ht_cap->cap; in ath12k_peer_assoc_h_ht() 1393 if (ht_cap->cap & IEEE80211_HT_CAP_LDPC_CODING) in ath12k_peer_assoc_h_ht() 1402 if (ht_cap->cap & (IEEE80211_HT_CAP_SGI_20 | in ath12k_peer_assoc_h_ht() 1407 if (ht_cap->cap & IEEE80211_HT_CAP_TX_STBC) { in ath12k_peer_assoc_h_ht() 1412 if (ht_cap->cap & IEEE80211_HT_CAP_RX_STBC) { in ath12k_peer_assoc_h_ht() 1413 stbc = ht_cap->cap & IEEE80211_HT_CAP_RX_STBC; in ath12k_peer_assoc_h_ht() [all …]
|
| /src/sys/contrib/dev/mediatek/mt76/ |
| H A D | mt76_connac_mcu.c | 795 struct ieee80211_sta_ht_cap *ht_cap; in mt76_connac_get_phy_mode_v2() local 802 ht_cap = &link_sta->ht_cap; in mt76_connac_get_phy_mode_v2() 810 ht_cap = &sband->ht_cap; in mt76_connac_get_phy_mode_v2() 819 if (ht_cap->ht_supported) in mt76_connac_get_phy_mode_v2() 830 if (ht_cap->ht_supported) in mt76_connac_get_phy_mode_v2() 864 if (sta->deflink.ht_cap.ht_supported) { in mt76_connac_mcu_sta_tlv() 869 ht->ht_cap = cpu_to_le16(sta->deflink.ht_cap.cap); in mt76_connac_mcu_sta_tlv() 891 if (sta->deflink.ht_cap.ht_supported || sta->deflink.he_cap.has_he) in mt76_connac_mcu_sta_tlv() 916 sta->deflink.ht_cap.ampdu_factor) | in mt76_connac_mcu_sta_tlv() 918 sta->deflink.ht_cap.ampdu_density); in mt76_connac_mcu_sta_tlv() [all …]
|
| H A D | mac80211.c | 265 struct ieee80211_sta_ht_cap *ht_cap = &sband->ht_cap; in mt76_init_stream_cap() local 271 ht_cap->cap |= IEEE80211_HT_CAP_TX_STBC; in mt76_init_stream_cap() 273 ht_cap->cap &= ~IEEE80211_HT_CAP_TX_STBC; in mt76_init_stream_cap() 276 ht_cap->mcs.rx_mask[i] = i < nstream ? 0xff : 0; in mt76_init_stream_cap() 322 struct ieee80211_sta_ht_cap *ht_cap; in mt76_init_sband() local 345 ht_cap = &sband->ht_cap; in mt76_init_sband() 346 ht_cap->ht_supported = true; in mt76_init_sband() 347 ht_cap->cap |= IEEE80211_HT_CAP_SUP_WIDTH_20_40 | in mt76_init_sband() 353 ht_cap->mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; in mt76_init_sband() 354 ht_cap->ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K; in mt76_init_sband()
|
| /src/sys/contrib/dev/athk/ath11k/ |
| H A D | mac.c | 1957 const struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in ath11k_peer_assoc_h_ht() local 1971 if (!ht_cap->ht_supported) in ath11k_peer_assoc_h_ht() 1983 ht_cap->ampdu_factor)) - 1; in ath11k_peer_assoc_h_ht() 1986 ath11k_parse_mpdudensity(ht_cap->ampdu_density); in ath11k_peer_assoc_h_ht() 1988 arg->peer_ht_caps = ht_cap->cap; in ath11k_peer_assoc_h_ht() 1991 if (ht_cap->cap & IEEE80211_HT_CAP_LDPC_CODING) in ath11k_peer_assoc_h_ht() 2008 if (ht_cap->cap & (IEEE80211_HT_CAP_SGI_20 | in ath11k_peer_assoc_h_ht() 2013 if (ht_cap->cap & IEEE80211_HT_CAP_TX_STBC) { in ath11k_peer_assoc_h_ht() 2018 if (ht_cap->cap & IEEE80211_HT_CAP_RX_STBC) { in ath11k_peer_assoc_h_ht() 2019 stbc = ht_cap->cap & IEEE80211_HT_CAP_RX_STBC; in ath11k_peer_assoc_h_ht() [all …]
|
| /src/sys/contrib/dev/athk/ath10k/ |
| H A D | mac.c | 2330 const struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in ath10k_peer_assoc_h_ht() local 2345 if (!ht_cap->ht_supported) in ath10k_peer_assoc_h_ht() 2358 ht_cap->ampdu_factor)) - 1; in ath10k_peer_assoc_h_ht() 2361 ath10k_parse_mpdudensity(ht_cap->ampdu_density); in ath10k_peer_assoc_h_ht() 2363 arg->peer_ht_caps = ht_cap->cap; in ath10k_peer_assoc_h_ht() 2366 if (ht_cap->cap & IEEE80211_HT_CAP_LDPC_CODING) in ath10k_peer_assoc_h_ht() 2375 if (ht_cap->cap & IEEE80211_HT_CAP_SGI_20) in ath10k_peer_assoc_h_ht() 2378 if (ht_cap->cap & IEEE80211_HT_CAP_SGI_40) in ath10k_peer_assoc_h_ht() 2382 if (ht_cap->cap & IEEE80211_HT_CAP_TX_STBC) { in ath10k_peer_assoc_h_ht() 2387 if (ht_cap->cap & IEEE80211_HT_CAP_RX_STBC) { in ath10k_peer_assoc_h_ht() [all …]
|
| /src/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()
|
| /src/sys/contrib/dev/mediatek/mt76/mt7915/ |
| H A D | init.c | 438 phy->mt76->sband_2g.sband.ht_cap.cap |= in mt7915_init_wiphy() 442 phy->mt76->sband_2g.sband.ht_cap.ampdu_density = in mt7915_init_wiphy() 445 phy->mt76->sband_2g.sband.ht_cap.ampdu_density = in mt7915_init_wiphy() 453 phy->mt76->sband_5g.sband.ht_cap.cap |= in mt7915_init_wiphy() 458 phy->mt76->sband_5g.sband.ht_cap.ampdu_density = in mt7915_init_wiphy() 470 phy->mt76->sband_5g.sband.ht_cap.ampdu_density = in mt7915_init_wiphy()
|
| H A D | mcu.c | 157 ht_mcs[nss] = sta->deflink.ht_cap.mcs.rx_mask[nss] & mask[nss]; in mt7915_mcu_set_sta_ht_mcs() 979 if (!sta->deflink.ht_cap.ht_supported) in mt7915_mcu_sta_ht_tlv() 985 ht->ht_cap = cpu_to_le16(sta->deflink.ht_cap.cap); in mt7915_mcu_sta_ht_tlv() 1127 struct ieee80211_mcs_info *mcs = &sta->deflink.ht_cap.mcs; in mt7915_mcu_sta_bfer_ht() 1262 if (!(sta->deflink.ht_cap.ht_supported || sta->deflink.he_cap.has_he)) in mt7915_mcu_sta_bfer_tlv() 1280 else if (sta->deflink.ht_cap.ht_supported) in mt7915_mcu_sta_bfer_tlv() 1489 } else if (sta->deflink.ht_cap.ht_supported) { in mt7915_mcu_add_rate_ctrl_fixed() 1588 if (sta->deflink.ht_cap.ht_supported) { in mt7915_mcu_sta_rate_ctrl_tlv() 1590 ra->af = sta->deflink.ht_cap.ampdu_factor; in mt7915_mcu_sta_rate_ctrl_tlv() 1591 ra->ht_gf = !!(sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_GRN_FLD); in mt7915_mcu_sta_rate_ctrl_tlv() [all …]
|
| /src/sys/contrib/dev/iwlwifi/ |
| H A D | iwl-nvm-parse.c | 797 struct ieee80211_sta_ht_cap ht_cap; in iwl_init_he_6ghz_capa() local 808 iwl_init_ht_hw_capab(trans, data, &ht_cap, NL80211_BAND_5GHZ, in iwl_init_he_6ghz_capa() 810 WARN_ON(!ht_cap.ht_supported); in iwl_init_he_6ghz_capa() 815 u16_encode_bits(ht_cap.ampdu_density, in iwl_init_he_6ghz_capa() 1061 iwl_init_ht_hw_capab(trans, data, &sband->ht_cap, NL80211_BAND_2GHZ, in iwl_reinit_cab() 1069 iwl_init_ht_hw_capab(trans, data, &sband->ht_cap, NL80211_BAND_5GHZ, in iwl_reinit_cab() 1105 iwl_init_ht_hw_capab(trans, data, &sband->ht_cap, NL80211_BAND_2GHZ, in iwl_init_sbands() 1118 iwl_init_ht_hw_capab(trans, data, &sband->ht_cap, NL80211_BAND_5GHZ, in iwl_init_sbands()
|
| /src/sys/contrib/dev/mediatek/mt76/mt7921/ |
| H A D | init.c | 340 dev->mphy.sband_2g.sband.ht_cap.cap |= in mt7921_register_device() 343 dev->mphy.sband_5g.sband.ht_cap.cap |= in mt7921_register_device()
|
| /src/sys/contrib/dev/mediatek/mt76/mt7996/ |
| H A D | mcu.c | 209 ht_mcs[nss] = link_sta->ht_cap.mcs.rx_mask[nss] & mask[nss]; in mt7996_mcu_set_sta_ht_mcs() 1415 if (!link_sta->ht_cap.ht_supported) in mt7996_mcu_sta_ht_tlv() 1421 ht->ht_cap = cpu_to_le16(link_sta->ht_cap.cap); in mt7996_mcu_sta_ht_tlv() 1422 ht->ampdu_param = u8_encode_bits(link_sta->ht_cap.ampdu_factor, in mt7996_mcu_sta_ht_tlv() 1424 u8_encode_bits(link_sta->ht_cap.ampdu_density, in mt7996_mcu_sta_ht_tlv() 1609 struct ieee80211_mcs_info *mcs = &link_sta->ht_cap.mcs; in mt7996_mcu_sta_bfer_ht() 1814 if (!(link_sta->ht_cap.ht_supported || link_sta->he_cap.has_he)) in mt7996_mcu_sta_bfer_tlv() 1834 else if (link_sta->ht_cap.ht_supported) in mt7996_mcu_sta_bfer_tlv() 2124 } else if (link_sta->ht_cap.ht_supported) { in mt7996_mcu_add_rate_ctrl_fixed() 2234 if (link_sta->ht_cap.ht_supported) { in mt7996_mcu_sta_rate_ctrl_tlv() [all …]
|
| /src/sys/compat/linuxkpi/common/src/ |
| H A D | linux_80211.c | 518 !sta->deflink.ht_cap.ht_supported) in lkpi_sync_chanctx_cw_from_rx_bw() 538 struct ieee80211_sta_ht_cap *ht_cap, *sta_ht_cap; in lkpi_sta_sync_ht_from_ni() local 543 sta->deflink.ht_cap.ht_supported = false; in lkpi_sta_sync_ht_from_ni() 547 sta->deflink.ht_cap.ht_supported = true; in lkpi_sta_sync_ht_from_ni() 551 …sta->deflink.ht_cap.ampdu_density = _IEEE80211_MASKSHIFT(ni->ni_htparam, IEEE80211_HTCAP_MPDUDENSI… in lkpi_sta_sync_ht_from_ni() 552 if (sta->deflink.ht_cap.ampdu_density > vap->iv_ampdu_density) in lkpi_sta_sync_ht_from_ni() 553 sta->deflink.ht_cap.ampdu_density = vap->iv_ampdu_density; in lkpi_sta_sync_ht_from_ni() 554 …sta->deflink.ht_cap.ampdu_factor = _IEEE80211_MASKSHIFT(ni->ni_htparam, IEEE80211_HTCAP_MAXRXAMPDU… in lkpi_sta_sync_ht_from_ni() 555 if (sta->deflink.ht_cap.ampdu_factor > vap->iv_ampdu_rxmax) in lkpi_sta_sync_ht_from_ni() 556 sta->deflink.ht_cap.ampdu_factor = vap->iv_ampdu_rxmax; in lkpi_sta_sync_ht_from_ni() [all …]
|
| /src/sys/contrib/dev/broadcom/brcm80211/brcmsmac/ |
| H A D | mac80211_if.c | 225 .ht_cap = { 247 .ht_cap = { 872 sta->deflink.ht_cap.ampdu_factor)) - 1); in brcms_ops_ampdu_action() 1066 band->ht_cap.mcs.rx_mask[1] = 0; in ieee_hw_rate_init() 1067 band->ht_cap.mcs.rx_highest = cpu_to_le16(72); in ieee_hw_rate_init()
|
| /src/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()
|
| /src/sys/contrib/dev/rtw89/ |
| H A D | core.c | 318 .ht_cap = {0}, 330 .ht_cap = {0}, 611 4 << link_sta->ht_cap.ampdu_factor) - 1); in rtw89_core_tx_update_ampdu_info() 614 desc_info->ampdu_density = link_sta->ht_cap.ampdu_density; in rtw89_core_tx_update_ampdu_info() 5084 struct ieee80211_sta_ht_cap *ht_cap) in rtw89_init_ht_cap() argument 5093 ht_cap->ht_supported = true; in rtw89_init_ht_cap() 5094 ht_cap->cap = 0; in rtw89_init_ht_cap() 5095 ht_cap->cap |= IEEE80211_HT_CAP_SGI_20 | in rtw89_init_ht_cap() 5099 ht_cap->cap |= IEEE80211_HT_CAP_LDPC_CODING; in rtw89_init_ht_cap() 5100 ht_cap->cap |= IEEE80211_HT_CAP_SUP_WIDTH_20_40 | in rtw89_init_ht_cap() [all …]
|
| /src/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()
|
| /src/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()
|