| /linux-6.15/net/mac80211/ |
| H A D | vht.c | 25 vht_cap->cap &= ~flag; in __check_vhtcap_disable() 34 if (!vht_cap->vht_supported) in ieee80211_apply_vhtcap_overrides() 69 vht_cap->cap &= in ieee80211_apply_vhtcap_overrides() 71 vht_cap->cap |= in ieee80211_apply_vhtcap_overrides() 122 struct ieee80211_sta_vht_cap *vht_cap = &link_sta->pub->vht_cap; in ieee80211_vht_cap_ie_to_sta_vht_cap() local 128 memset(vht_cap, 0, sizeof(*vht_cap)); in ieee80211_vht_cap_ie_to_sta_vht_cap() 159 own_cap = sband->vht_cap; in ieee80211_vht_cap_ie_to_sta_vht_cap() 172 vht_cap->cap = cap_info; in ieee80211_vht_cap_ie_to_sta_vht_cap() 359 struct ieee80211_sta_vht_cap *vht_cap = &link_sta->pub->vht_cap; in __ieee80211_sta_cap_rx_bw() local 451 struct ieee80211_sta_vht_cap *vht_cap = &link_sta->pub->vht_cap; in ieee80211_sta_cap_chan_bw() local [all …]
|
| H A D | tdls.c | 55 bool vht = sband && sband->vht_cap.vht_supported; in ieee80211_tdls_add_ext_capab() 374 struct ieee80211_sta_vht_cap vht_cap; in ieee80211_tdls_add_setup_start_ies() local 503 memcpy(&vht_cap, &sband->vht_cap, sizeof(vht_cap)); in ieee80211_tdls_add_setup_start_ies() 506 if ((vht_cap.vht_supported || he_cap || eht_cap) && in ieee80211_tdls_add_setup_start_ies() 514 vht_cap.vht_supported) { in ieee80211_tdls_add_setup_start_ies() 515 ieee80211_apply_vhtcap_overrides(sdata, &vht_cap); in ieee80211_tdls_add_setup_start_ies() 518 ieee80211_ie_build_vht_cap(pos, &vht_cap, vht_cap.cap); in ieee80211_tdls_add_setup_start_ies() 520 vht_cap.vht_supported && sta->sta.deflink.vht_cap.vht_supported) { in ieee80211_tdls_add_setup_start_ies() 522 memcpy(&vht_cap, &sta->sta.deflink.vht_cap, sizeof(vht_cap)); in ieee80211_tdls_add_setup_start_ies() 525 ieee80211_ie_build_vht_cap(pos, &vht_cap, vht_cap.cap); in ieee80211_tdls_add_setup_start_ies() [all …]
|
| /linux-6.15/drivers/net/wireless/marvell/mwifiex/ |
| H A D | 11ac.c | 87 struct ieee80211_vht_cap *vht_cap, u8 bands) in mwifiex_fill_vht_cap_info() argument 92 vht_cap->vht_cap_info = in mwifiex_fill_vht_cap_info() 95 vht_cap->vht_cap_info = in mwifiex_fill_vht_cap_info() 107 mwifiex_fill_vht_cap_info(priv, vht_cap, bands); in mwifiex_fill_vht_cap_tlv() 161 struct mwifiex_ie_types_vhtcap *vht_cap; in mwifiex_cmd_append_11ac_tlv() local 178 memset(vht_cap, 0, sizeof(*vht_cap)); in mwifiex_cmd_append_11ac_tlv() 180 vht_cap->header.len = in mwifiex_cmd_append_11ac_tlv() 184 le16_to_cpu(vht_cap->header.len)); in mwifiex_cmd_append_11ac_tlv() 186 mwifiex_fill_vht_cap_tlv(priv, &vht_cap->vht_cap, in mwifiex_cmd_append_11ac_tlv() 188 *buffer += sizeof(*vht_cap); in mwifiex_cmd_append_11ac_tlv() [all …]
|
| H A D | 11ac.h | 32 struct ieee80211_vht_cap *vht_cap, u8 bands);
|
| H A D | tdls.c | 171 struct ieee80211_vht_cap vht_cap; in mwifiex_tdls_add_vht_capab() local 178 memset(&vht_cap, 0, sizeof(struct ieee80211_vht_cap)); in mwifiex_tdls_add_vht_capab() 180 mwifiex_fill_vht_cap_tlv(priv, &vht_cap, priv->curr_bss_params.band); in mwifiex_tdls_add_vht_capab() 181 memcpy(pos, &vht_cap, sizeof(vht_cap)); in mwifiex_tdls_add_vht_capab() 239 struct ieee80211_vht_cap *vht_cap, *ap_vht_cap = NULL; in mwifiex_tdls_add_vht_oper() local 285 vht_cap = &sta_ptr->tdls_cap.vhtcap; in mwifiex_tdls_add_vht_oper() 288 GET_VHTCAP_CHWDSET(le32_to_cpu(vht_cap->vht_cap_info)); in mwifiex_tdls_add_vht_oper() 316 mcs_map_resp = le16_to_cpu(vht_cap->supp_mcs.rx_mcs_map); in mwifiex_tdls_add_vht_oper()
|
| /linux-6.15/drivers/net/wireless/intel/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() 144 .vht_cap_info = cpu_to_le32(vht_cap->cap), in rs_fw_vht_set_enabled_rates() 145 .supp_mcs = vht_cap->vht_mcs, in rs_fw_vht_set_enabled_rates() 377 const struct ieee80211_sta_vht_cap *vht_cap = &link_sta->vht_cap; in rs_fw_set_supp_rates() local 396 } else if (vht_cap->vht_supported) { in rs_fw_set_supp_rates() 526 const struct ieee80211_sta_vht_cap *vht_cap = &link_sta->vht_cap; in rs_fw_get_max_amsdu_len() local [all …]
|
| H A D | rs.c | 171 struct ieee80211_sta_vht_cap *vht_cap = &sta->deflink.vht_cap; in rs_sgi_allow() local 179 if (is_ht80(rate) && (vht_cap->cap & in rs_sgi_allow() 182 if (is_ht160(rate) && (vht_cap->cap & in rs_sgi_allow() 1374 struct ieee80211_vht_cap vht_cap = { in rs_bw_from_sta_bw() local 1389 if (ieee80211_get_vht_max_nss(&vht_cap, in rs_bw_from_sta_bw() 2544 if (sta->deflink.vht_cap.vht_supported && in rs_get_initial_rate() 2758 struct ieee80211_sta_vht_cap *vht_cap, in rs_vht_set_enabled_rates() argument 2831 struct ieee80211_sta_vht_cap *vht_cap) in rs_vht_init() argument 2926 struct ieee80211_sta_vht_cap *vht_cap = &sta->deflink.vht_cap; in rs_drv_rate_init() local 2968 if (!vht_cap || !vht_cap->vht_supported) in rs_drv_rate_init() [all …]
|
| /linux-6.15/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | tlc.c | 41 struct ieee80211_sta_vht_cap *vht_cap = &link_sta->vht_cap; in iwl_mld_get_tlc_cmd_flags() local 43 bool has_vht = vht_cap->vht_supported; in iwl_mld_get_tlc_cmd_flags() 111 struct ieee80211_sta_vht_cap *vht_cap = &link_sta->vht_cap; in iwl_mld_get_fw_sgi() local 126 if (vht_cap->cap & IEEE80211_VHT_CAP_SHORT_GI_80) in iwl_mld_get_fw_sgi() 128 if (vht_cap->cap & IEEE80211_VHT_CAP_SHORT_GI_160) in iwl_mld_get_fw_sgi() 159 const struct ieee80211_sta_vht_cap *vht_cap, in iwl_mld_fill_vht_rates() argument 166 .vht_cap_info = cpu_to_le32(vht_cap->cap), in iwl_mld_fill_vht_rates() 167 .supp_mcs = vht_cap->vht_mcs, in iwl_mld_fill_vht_rates() 414 const struct ieee80211_sta_vht_cap *vht_cap = &link_sta->vht_cap; in iwl_mld_fill_supp_rates() local 432 } else if (vht_cap->vht_supported) { in iwl_mld_fill_supp_rates() [all …]
|
| /linux-6.15/drivers/net/wireless/intel/iwlwifi/ |
| H A D | iwl-nvm-parse.c | 507 vht_cap->vht_supported = true; in iwl_init_vht_hw_capab() 527 vht_cap->cap |= IEEE80211_VHT_CAP_RXLDPC; in iwl_init_vht_hw_capab() 535 vht_cap->cap |= IEEE80211_VHT_CAP_TXSTBC; in iwl_init_vht_hw_capab() 542 vht_cap->cap |= in iwl_init_vht_hw_capab() 549 vht_cap->cap |= in iwl_init_vht_hw_capab() 567 vht_cap->vht_mcs.rx_mcs_map = in iwl_init_vht_hw_capab() 580 vht_cap->vht_mcs.rx_mcs_map |= in iwl_init_vht_hw_capab() 584 vht_cap->vht_mcs.tx_mcs_map = vht_cap->vht_mcs.rx_mcs_map; in iwl_init_vht_hw_capab() 586 vht_cap->vht_mcs.tx_highest |= in iwl_init_vht_hw_capab() 883 WARN_ON(!vht_cap.vht_supported); in iwl_init_he_6ghz_capa() [all …]
|
| /linux-6.15/net/mac80211/tests/ |
| H A D | util.c | 255 sband->vht_cap.vht_supported = true; in t_sdata_init() 256 sband->vht_cap.cap = in t_sdata_init() 265 sband->vht_cap.vht_mcs.rx_mcs_map = in t_sdata_init() 270 sband->vht_cap.vht_mcs.tx_mcs_map = in t_sdata_init() 271 sband->vht_cap.vht_mcs.rx_mcs_map; in t_sdata_init()
|
| H A D | chan-mode.c | 174 le16_get_bits(t_sdata->band_5ghz.vht_cap.vht_mcs.rx_mcs_map, 0xff), in KUNIT_ARRAY_PARAM_DESC() 177 le16_get_bits(t_sdata->band_5ghz.vht_cap.vht_mcs.rx_mcs_map, 0xff00), in KUNIT_ARRAY_PARAM_DESC()
|
| /linux-6.15/drivers/net/wireless/realtek/rtw88/ |
| H A D | bf.c | 39 struct ieee80211_sta_vht_cap *vht_cap; in rtw_bf_assoc() local 59 ic_vht_cap = &hw->wiphy->bands[NL80211_BAND_5GHZ]->vht_cap; in rtw_bf_assoc() 60 vht_cap = &sta->deflink.vht_cap; in rtw_bf_assoc() 65 (vht_cap->cap & IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE)) { in rtw_bf_assoc() 79 (vht_cap->cap & IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE)) { in rtw_bf_assoc() 85 sound_dim = vht_cap->cap & in rtw_bf_assoc()
|
| H A D | main.c | 149 .vht_cap = {0}, 163 .vht_cap = {0}, 1229 if (sta->deflink.vht_cap.vht_supported) { 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() 1310 if (sta->deflink.vht_cap.vht_supported || in rtw_update_sta_info() 1607 vht_cap->vht_supported = true; in rtw_init_vht_cap() 1615 vht_cap->cap |= IEEE80211_VHT_CAP_TXSTBC; in rtw_init_vht_cap() 1622 vht_cap->cap |= IEEE80211_VHT_CAP_RXLDPC; in rtw_init_vht_cap() 1635 vht_cap->vht_mcs.rx_highest = highest; in rtw_init_vht_cap() [all …]
|
| /linux-6.15/drivers/net/wireless/realtek/rtlwifi/ |
| H A D | base.c | 220 struct ieee80211_sta_vht_cap *vht_cap) in _rtl_init_hw_vht_capab() argument 232 vht_cap->vht_supported = true; in _rtl_init_hw_vht_capab() 233 vht_cap->cap = in _rtl_init_hw_vht_capab() 256 vht_cap->vht_mcs.rx_highest = in _rtl_init_hw_vht_capab() 259 vht_cap->vht_mcs.tx_highest = in _rtl_init_hw_vht_capab() 264 vht_cap->vht_supported = true; in _rtl_init_hw_vht_capab() 265 vht_cap->cap = in _rtl_init_hw_vht_capab() 288 vht_cap->vht_mcs.rx_highest = in _rtl_init_hw_vht_capab() 291 vht_cap->vht_mcs.tx_highest = in _rtl_init_hw_vht_capab() 333 _rtl_init_hw_vht_capab(hw, &sband->vht_cap); in _rtl_init_mac80211() [all …]
|
| H A D | rc.c | 126 sgi_80 = sta->deflink.vht_cap.cap & IEEE80211_VHT_CAP_SHORT_GI_80; in _rtl_rc_rate_set_series() 141 if (sta && sta->deflink.vht_cap.vht_supported) in _rtl_rc_rate_set_series() 156 if (sta && sta->deflink.vht_cap.vht_supported && in _rtl_rc_rate_set_series()
|
| /linux-6.15/drivers/net/wireless/ath/wcn36xx/ |
| H A D | main.c | 756 if (sta->deflink.vht_cap.vht_supported) { in wcn36xx_update_allowed_rates() 759 le16_to_cpu(sta->deflink.vht_cap.vht_mcs.rx_mcs_map); in wcn36xx_update_allowed_rates() 761 le16_to_cpu(sta->deflink.vht_cap.vht_mcs.tx_mcs_map); in wcn36xx_update_allowed_rates() 1389 wcn36xx_set_ieee80211_vht_caps(struct ieee80211_sta_vht_cap *vht_cap) in wcn36xx_set_ieee80211_vht_caps() argument 1391 vht_cap->vht_supported = true; in wcn36xx_set_ieee80211_vht_caps() 1393 vht_cap->cap = (IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_3895 | in wcn36xx_set_ieee80211_vht_caps() 1401 vht_cap->vht_mcs.rx_mcs_map = in wcn36xx_set_ieee80211_vht_caps() 1411 vht_cap->vht_mcs.rx_highest = cpu_to_le16(433); in wcn36xx_set_ieee80211_vht_caps() 1412 vht_cap->vht_mcs.tx_highest = vht_cap->vht_mcs.rx_highest; in wcn36xx_set_ieee80211_vht_caps() 1414 vht_cap->vht_mcs.tx_mcs_map = vht_cap->vht_mcs.rx_mcs_map; in wcn36xx_set_ieee80211_vht_caps() [all …]
|
| /linux-6.15/drivers/net/wireless/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()
|
| /linux-6.15/net/wireless/ |
| H A D | chan.c | 1139 struct ieee80211_sta_vht_cap *vht_cap; in _cfg80211_chandef_usable() local 1152 vht_cap = &wiphy->bands[chandef->chan->band]->vht_cap; in _cfg80211_chandef_usable() 1154 ext_nss_cap = __le16_to_cpu(vht_cap->vht_mcs.tx_highest) & in _cfg80211_chandef_usable() 1216 cap = vht_cap->cap; in _cfg80211_chandef_usable() 1231 if (!vht_cap->vht_supported) in _cfg80211_chandef_usable() 1239 if (!vht_cap->vht_supported) in _cfg80211_chandef_usable() 1241 cap = vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; in _cfg80211_chandef_usable() 1245 (vht_cap->cap & IEEE80211_VHT_CAP_EXT_NSS_BW_MASK))) in _cfg80211_chandef_usable()
|
| /linux-6.15/drivers/net/wireless/mediatek/mt76/ |
| H A D | mt76_connac_mcu.c | 797 struct ieee80211_sta_vht_cap *vht_cap; in mt76_connac_get_phy_mode_v2() local 804 vht_cap = &link_sta->vht_cap; in mt76_connac_get_phy_mode_v2() 812 vht_cap = &sband->vht_cap; in mt76_connac_get_phy_mode_v2() 834 if (vht_cap->vht_supported) in mt76_connac_get_phy_mode_v2() 874 if (sta->deflink.vht_cap.vht_supported) { in mt76_connac_mcu_sta_tlv() 881 vht->vht_cap = cpu_to_le32(sta->deflink.vht_cap.cap); in mt76_connac_mcu_sta_tlv() 1005 sta->deflink.vht_cap.cap); in mt76_connac_mcu_wtbl_ht_tlv() 1326 struct ieee80211_sta_vht_cap *vht_cap; in mt76_connac_get_phy_mode() local 1335 vht_cap = &link_sta->vht_cap; in mt76_connac_get_phy_mode() 1342 vht_cap = &sband->vht_cap; in mt76_connac_get_phy_mode() [all …]
|
| H A D | mac80211.c | 257 struct ieee80211_sta_vht_cap *vht_cap; in mt76_init_stream_cap() local 271 vht_cap = &sband->vht_cap; in mt76_init_stream_cap() 273 vht_cap->cap |= IEEE80211_VHT_CAP_TXSTBC; in mt76_init_stream_cap() 275 vht_cap->cap &= ~IEEE80211_VHT_CAP_TXSTBC; in mt76_init_stream_cap() 286 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in mt76_init_stream_cap() 287 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); in mt76_init_stream_cap() 289 vht_cap->vht_mcs.tx_highest |= in mt76_init_stream_cap() 311 struct ieee80211_sta_vht_cap *vht_cap; in mt76_init_sband() local 351 vht_cap = &sband->vht_cap; in mt76_init_sband() 352 vht_cap->vht_supported = true; in mt76_init_sband() [all …]
|
| /linux-6.15/drivers/net/wireless/mediatek/mt76/mt7915/ |
| H A D | init.c | 423 struct ieee80211_sta_vht_cap *vht_cap; in mt7915_init_wiphy() local 425 vht_cap = &phy->mt76->sband_5g.sband.vht_cap; in mt7915_init_wiphy() 434 vht_cap->cap |= in mt7915_init_wiphy() 439 vht_cap->cap |= in mt7915_init_wiphy() 446 vht_cap->cap |= in mt7915_init_wiphy() 451 vht_cap->cap |= in mt7915_init_wiphy() 869 cap = &phy->mt76->sband_5g.sband.vht_cap.cap; in mt7915_set_stream_vht_txbf_caps()
|
| H A D | mcu.c | 910 if (sta->deflink.vht_cap.vht_supported) in mt7915_mcu_sta_muru_tlv() 965 if (!sta->deflink.vht_cap.vht_supported) in mt7915_mcu_sta_vht_tlv() 971 vht->vht_cap = cpu_to_le32(sta->deflink.vht_cap.cap); in mt7915_mcu_sta_vht_tlv() 1071 if (sta->deflink.vht_cap.vht_supported) { in mt7915_is_ebf_supported() 1072 u32 cap = sta->deflink.vht_cap.cap; in mt7915_is_ebf_supported() 1249 else if (sta->deflink.vht_cap.vht_supported) in mt7915_mcu_sta_bfer_tlv() 1310 } else if (sta->deflink.vht_cap.vht_supported) { in mt7915_mcu_sta_bfee_tlv() 1458 } else if (sta->deflink.vht_cap.vht_supported) { in mt7915_mcu_add_rate_ctrl_fixed() 1582 if (sta->deflink.vht_cap.vht_supported) { in mt7915_mcu_sta_rate_ctrl_tlv() 1587 sta->deflink.vht_cap.cap); in mt7915_mcu_sta_rate_ctrl_tlv() [all …]
|
| /linux-6.15/drivers/net/wireless/ath/ath11k/ |
| H A D | mac.c | 2148 const struct ieee80211_sta_vht_cap *vht_cap = &sta->deflink.vht_cap; in ath11k_peer_assoc_h_vht() local 2162 if (!vht_cap->vht_supported) in ath11k_peer_assoc_h_vht() 2181 ampdu_factor = (vht_cap->cap & in ath11k_peer_assoc_h_vht() 5388 u32 vht_cap = ar->pdev->cap.vht_cap; in ath11k_mac_set_txbf_conf() local 5398 sound_dim = vht_cap & in ath11k_mac_set_txbf_conf() 5472 *vht_cap |= sound_dim; in ath11k_set_vht_txbf_cap() 5479 *vht_cap |= nsts; in ath11k_set_vht_txbf_cap() 5491 vht_cap.vht_supported = 1; in ath11k_create_vht_cap() 5492 vht_cap.cap = ar->pdev->cap.vht_cap; in ath11k_create_vht_cap() 5520 return vht_cap; in ath11k_create_vht_cap() [all …]
|
| /linux-6.15/drivers/net/wireless/ath/ath12k/ |
| H A D | mac.c | 2287 vht_cap = &link_sta->vht_cap; in ath12k_peer_assoc_h_vht() 2288 if (!vht_cap->vht_supported) in ath12k_peer_assoc_h_vht() 2307 ampdu_factor = (vht_cap->cap & in ath12k_peer_assoc_h_vht() 2777 switch (link_sta->vht_cap.cap & in ath12k_mac_get_phymode_vht() 6342 u32 vht_cap = ar->pdev->cap.vht_cap; in ath12k_mac_set_txbf_conf() local 6352 sound_dim = vht_cap & in ath12k_mac_set_txbf_conf() 6406 *vht_cap = u32_replace_bits(*vht_cap, 0, in ath12k_set_vht_txbf_cap() 6416 *vht_cap = u32_replace_bits(*vht_cap, sound_dim, in ath12k_set_vht_txbf_cap() 6433 vht_cap.vht_supported = 1; in ath12k_create_vht_cap() 6434 vht_cap.cap = ar->pdev->cap.vht_cap; in ath12k_create_vht_cap() [all …]
|
| /linux-6.15/drivers/net/wireless/ath/ath10k/ |
| H A D | mac.c | 2551 const struct ieee80211_sta_vht_cap *vht_cap = &sta->deflink.vht_cap; in ath10k_peer_assoc_h_vht() local 2564 if (!vht_cap->vht_supported) in ath10k_peer_assoc_h_vht() 2580 ampdu_factor = (vht_cap->cap & in ath10k_peer_assoc_h_vht() 2697 struct ieee80211_sta_vht_cap *vht_cap = &sta->deflink.vht_cap; in ath10k_mac_get_phymode_vht() local 3088 vht_cap = ap_sta->deflink.vht_cap; in ath10k_bss_assoc() 4871 vht_cap.vht_supported = 1; in ath10k_create_vht_cap() 4880 vht_cap.cap |= val; in ath10k_create_vht_cap() 4889 vht_cap.cap |= val; in ath10k_create_vht_cap() 4917 return vht_cap; in ath10k_create_vht_cap() 5003 band->vht_cap = vht_cap; in ath10k_mac_setup_ht_vht_cap() [all …]
|