Home
last modified time | relevance | path

Searched refs:vht_cap (Results 1 – 25 of 52) sorted by relevance

123

/Linux-v4.19/net/mac80211/
Dvht.c20 struct ieee80211_sta_vht_cap *vht_cap, in __check_vhtcap_disable() argument
27 vht_cap->cap &= ~flag; in __check_vhtcap_disable()
31 struct ieee80211_sta_vht_cap *vht_cap) in ieee80211_apply_vhtcap_overrides() argument
36 if (!vht_cap->vht_supported) in ieee80211_apply_vhtcap_overrides()
42 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
44 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
46 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
48 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
50 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
52 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
[all …]
Dtdls.c54 bool vht = sband && sband->vht_cap.vht_supported; in ieee80211_tdls_add_ext_capab()
370 struct ieee80211_sta_vht_cap vht_cap; in ieee80211_tdls_add_setup_start_ies() local
501 memcpy(&vht_cap, &sband->vht_cap, sizeof(vht_cap)); in ieee80211_tdls_add_setup_start_ies()
504 vht_cap.vht_supported) { in ieee80211_tdls_add_setup_start_ies()
505 ieee80211_apply_vhtcap_overrides(sdata, &vht_cap); in ieee80211_tdls_add_setup_start_ies()
512 ieee80211_ie_build_vht_cap(pos, &vht_cap, vht_cap.cap); in ieee80211_tdls_add_setup_start_ies()
514 vht_cap.vht_supported && sta->sta.vht_cap.vht_supported) { in ieee80211_tdls_add_setup_start_ies()
516 memcpy(&vht_cap, &sta->sta.vht_cap, sizeof(vht_cap)); in ieee80211_tdls_add_setup_start_ies()
522 ieee80211_ie_build_vht_cap(pos, &vht_cap, vht_cap.cap); in ieee80211_tdls_add_setup_start_ies()
622 sta->sta.vht_cap.vht_supported) { in ieee80211_tdls_add_setup_cfm_ies()
[all …]
Drc80211_minstrel_ht.c913 if (!mi->sta->vht_cap.vht_supported) in minstrel_ht_get_max_amsdu_len()
1134 struct ieee80211_sta_vht_cap *vht_cap = &sta->vht_cap; in minstrel_ht_update_caps() local
1149 if (vht_cap->vht_supported) in minstrel_ht_update_caps()
1150 use_vht = vht_cap->vht_mcs.tx_mcs_map != cpu_to_le16(~0); in minstrel_ht_update_caps()
1231 if (!vht_cap->vht_supported || in minstrel_ht_update_caps()
1239 !(vht_cap->cap & IEEE80211_VHT_CAP_SHORT_GI_80))) { in minstrel_ht_update_caps()
1252 vht_cap->vht_mcs.tx_mcs_map); in minstrel_ht_update_caps()
Dmesh.c479 if (!sband->vht_cap.vht_supported || in mesh_add_vht_cap_ie()
489 ieee80211_ie_build_vht_cap(pos, &sband->vht_cap, sband->vht_cap.cap); in mesh_add_vht_cap_ie()
501 struct ieee80211_sta_vht_cap *vht_cap; in mesh_add_vht_oper_ie() local
514 vht_cap = &sband->vht_cap; in mesh_add_vht_oper_ie()
516 if (!vht_cap->vht_supported || in mesh_add_vht_oper_ie()
526 ieee80211_ie_build_vht_oper(pos, vht_cap, in mesh_add_vht_oper_ie()
Dmlme.c205 if (!vht_oper || !sband->vht_cap.vht_supported) { in ieee80211_determine_chantype()
535 struct ieee80211_sta_vht_cap vht_cap; in ieee80211_add_vht_ie() local
538 BUILD_BUG_ON(sizeof(vht_cap) != sizeof(sband->vht_cap)); in ieee80211_add_vht_ie()
540 memcpy(&vht_cap, &sband->vht_cap, sizeof(vht_cap)); in ieee80211_add_vht_ie()
541 ieee80211_apply_vhtcap_overrides(sdata, &vht_cap); in ieee80211_add_vht_ie()
544 cap = vht_cap.cap; in ieee80211_add_vht_ie()
607 ieee80211_ie_build_vht_cap(pos, &vht_cap, cap); in ieee80211_add_vht_ie()
4483 const struct ieee80211_vht_cap *vht_cap; in ieee80211_ht_vht_rx_chains() local
4503 if (vht_cap_ie && vht_cap_ie[1] >= sizeof(*vht_cap)) { in ieee80211_ht_vht_rx_chains()
4507 vht_cap = (void *)(vht_cap_ie + 2); in ieee80211_ht_vht_rx_chains()
[all …]
Dibss.c199 sband->vht_cap.vht_supported) { in ieee80211_ibss_build_presp()
200 pos = ieee80211_ie_build_vht_cap(pos, &sband->vht_cap, in ieee80211_ibss_build_presp()
201 sband->vht_cap.cap); in ieee80211_ibss_build_presp()
202 pos = ieee80211_ie_build_vht_oper(pos, &sband->vht_cap, in ieee80211_ibss_build_presp()
1071 struct ieee80211_sta_vht_cap cap = sta->sta.vht_cap; in ieee80211_update_sta_info()
1078 if (memcmp(&cap, &sta->sta.vht_cap, sizeof(cap))) in ieee80211_update_sta_info()
Dutil.c1516 if (sband->vht_cap.vht_supported && have_80mhz) { in ieee80211_build_preq_ies_band()
1519 pos = ieee80211_ie_build_vht_cap(pos, &sband->vht_cap, in ieee80211_build_preq_ies_band()
1520 sband->vht_cap.cap); in ieee80211_build_preq_ies_band()
2423 u8 *ieee80211_ie_build_vht_cap(u8 *pos, struct ieee80211_sta_vht_cap *vht_cap, in ieee80211_ie_build_vht_cap() argument
2438 memcpy(pos, &vht_cap->vht_mcs, sizeof(vht_cap->vht_mcs)); in ieee80211_ie_build_vht_cap()
2439 pos += sizeof(vht_cap->vht_mcs); in ieee80211_ie_build_vht_cap()
2583 u8 *ieee80211_ie_build_vht_oper(u8 *pos, struct ieee80211_sta_vht_cap *vht_cap, in ieee80211_ie_build_vht_oper() argument
/Linux-v4.19/drivers/net/wireless/marvell/mwifiex/
D11ac.c99 struct ieee80211_vht_cap *vht_cap, u8 bands) in mwifiex_fill_vht_cap_info() argument
104 vht_cap->vht_cap_info = in mwifiex_fill_vht_cap_info()
107 vht_cap->vht_cap_info = in mwifiex_fill_vht_cap_info()
112 struct ieee80211_vht_cap *vht_cap, u8 bands) in mwifiex_fill_vht_cap_tlv() argument
119 mwifiex_fill_vht_cap_info(priv, vht_cap, bands); in mwifiex_fill_vht_cap_tlv()
123 mcs_map_resp = le16_to_cpu(vht_cap->supp_mcs.rx_mcs_map); in mwifiex_fill_vht_cap_tlv()
139 vht_cap->supp_mcs.rx_mcs_map = cpu_to_le16(mcs_map_result); in mwifiex_fill_vht_cap_tlv()
142 vht_cap->supp_mcs.rx_highest = cpu_to_le16(tmp); in mwifiex_fill_vht_cap_tlv()
146 mcs_map_resp = le16_to_cpu(vht_cap->supp_mcs.tx_mcs_map); in mwifiex_fill_vht_cap_tlv()
161 vht_cap->supp_mcs.tx_mcs_map = cpu_to_le16(mcs_map_result); in mwifiex_fill_vht_cap_tlv()
[all …]
D11ac.h44 struct ieee80211_vht_cap *vht_cap, u8 bands);
Dtdls.c172 struct ieee80211_vht_cap vht_cap; in mwifiex_tdls_add_vht_capab() local
179 memset(&vht_cap, 0, sizeof(struct ieee80211_vht_cap)); in mwifiex_tdls_add_vht_capab()
181 mwifiex_fill_vht_cap_tlv(priv, &vht_cap, priv->curr_bss_params.band); in mwifiex_tdls_add_vht_capab()
182 memcpy(pos, &vht_cap, sizeof(vht_cap)); in mwifiex_tdls_add_vht_capab()
240 struct ieee80211_vht_cap *vht_cap, *ap_vht_cap = NULL; in mwifiex_tdls_add_vht_oper() local
286 vht_cap = &sta_ptr->tdls_cap.vhtcap; in mwifiex_tdls_add_vht_oper()
289 GET_VHTCAP_CHWDSET(le32_to_cpu(vht_cap->vht_cap_info)); in mwifiex_tdls_add_vht_oper()
317 mcs_map_resp = le16_to_cpu(vht_cap->supp_mcs.rx_mcs_map); in mwifiex_tdls_add_vht_oper()
Dsta_event.c39 const struct ieee80211_vht_cap *vht_cap; in mwifiex_check_ibss_peer_capabilties() local
88 vht_cap = (void *)(ele_hdr + 2); in mwifiex_check_ibss_peer_capabilties()
90 switch (le32_to_cpu(vht_cap->vht_cap_info) & 0x3) { in mwifiex_check_ibss_peer_capabilties()
Dioctl.h115 struct ieee80211_vht_cap vht_cap; member
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/mvm/
Drs-fw.c100 struct ieee80211_sta_vht_cap *vht_cap = &sta->vht_cap; in rs_fw_sgi_cw_support() local
107 if (vht_cap->cap & IEEE80211_VHT_CAP_SHORT_GI_80) in rs_fw_sgi_cw_support()
109 if (vht_cap->cap & IEEE80211_VHT_CAP_SHORT_GI_160) in rs_fw_sgi_cw_support()
119 struct ieee80211_sta_vht_cap *vht_cap = &sta->vht_cap; in rs_fw_set_config_flags() local
120 bool vht_ena = vht_cap && vht_cap->vht_supported; in rs_fw_set_config_flags()
126 (vht_ena && (vht_cap->cap & IEEE80211_VHT_CAP_RXSTBC_MASK)))) in rs_fw_set_config_flags()
131 (vht_ena && (vht_cap->cap & IEEE80211_VHT_CAP_RXLDPC)))) in rs_fw_set_config_flags()
138 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
141 u16 rx_mcs = le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map) & in rs_fw_vht_highest_rx_mcs_index()
162 const struct ieee80211_sta_vht_cap *vht_cap, in rs_fw_vht_set_enabled_rates() argument
[all …]
Drs.c188 struct ieee80211_sta_vht_cap *vht_cap = &sta->vht_cap; in rs_sgi_allow() local
196 if (is_ht80(rate) && (vht_cap->cap & in rs_sgi_allow()
199 if (is_ht160(rate) && (vht_cap->cap & in rs_sgi_allow()
2765 if (sta->vht_cap.vht_supported && in rs_get_initial_rate()
2964 static int rs_vht_highest_rx_mcs_index(struct ieee80211_sta_vht_cap *vht_cap, in rs_vht_highest_rx_mcs_index() argument
2967 u16 rx_mcs = le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map) & in rs_vht_highest_rx_mcs_index()
2983 struct ieee80211_sta_vht_cap *vht_cap, in rs_vht_set_enabled_rates() argument
2987 int highest_mcs = rs_vht_highest_rx_mcs_index(vht_cap, 1); in rs_vht_set_enabled_rates()
3006 highest_mcs = rs_vht_highest_rx_mcs_index(vht_cap, 2); in rs_vht_set_enabled_rates()
3056 struct ieee80211_sta_vht_cap *vht_cap) in rs_vht_init() argument
[all …]
Dsf.c168 if (sta->ht_cap.ht_supported || sta->vht_cap.vht_supported) { in iwl_mvm_fill_sf_command()
/Linux-v4.19/drivers/net/wireless/mediatek/mt76/
Dmac80211.c128 struct ieee80211_sta_vht_cap *vht_cap; in mt76_init_stream_cap() local
142 vht_cap = &sband->vht_cap; in mt76_init_stream_cap()
144 vht_cap->cap |= IEEE80211_VHT_CAP_TXSTBC; in mt76_init_stream_cap()
146 vht_cap->cap &= ~IEEE80211_VHT_CAP_TXSTBC; in mt76_init_stream_cap()
155 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in mt76_init_stream_cap()
156 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); in mt76_init_stream_cap()
175 struct ieee80211_sta_vht_cap *vht_cap; in mt76_init_sband() local
212 vht_cap = &sband->vht_cap; in mt76_init_sband()
213 vht_cap->vht_supported = true; in mt76_init_sband()
214 vht_cap->cap |= IEEE80211_VHT_CAP_RXLDPC | in mt76_init_sband()
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/
Diwl-nvm-parse.c388 struct ieee80211_sta_vht_cap *vht_cap, in iwl_init_vht_hw_capab() argument
396 vht_cap->vht_supported = true; in iwl_init_vht_hw_capab()
398 vht_cap->cap = IEEE80211_VHT_CAP_SHORT_GI_80 | in iwl_init_vht_hw_capab()
406 vht_cap->cap |= IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ | in iwl_init_vht_hw_capab()
410 vht_cap->cap |= IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE; in iwl_init_vht_hw_capab()
413 vht_cap->cap |= IEEE80211_VHT_CAP_RXLDPC; in iwl_init_vht_hw_capab()
421 vht_cap->cap |= IEEE80211_VHT_CAP_TXSTBC; in iwl_init_vht_hw_capab()
423 vht_cap->cap |= IEEE80211_VHT_CAP_TX_ANTENNA_PATTERN; in iwl_init_vht_hw_capab()
428 vht_cap->cap |= in iwl_init_vht_hw_capab()
431 vht_cap->cap |= IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_3895; in iwl_init_vht_hw_capab()
[all …]
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/
Dbase.c242 struct ieee80211_sta_vht_cap *vht_cap) in _rtl_init_hw_vht_capab() argument
254 vht_cap->vht_supported = true; in _rtl_init_hw_vht_capab()
255 vht_cap->cap = in _rtl_init_hw_vht_capab()
277 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in _rtl_init_hw_vht_capab()
278 vht_cap->vht_mcs.rx_highest = in _rtl_init_hw_vht_capab()
280 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); in _rtl_init_hw_vht_capab()
281 vht_cap->vht_mcs.tx_highest = in _rtl_init_hw_vht_capab()
286 vht_cap->vht_supported = true; in _rtl_init_hw_vht_capab()
287 vht_cap->cap = in _rtl_init_hw_vht_capab()
309 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in _rtl_init_hw_vht_capab()
[all …]
Drc.c148 sgi_80 = sta->vht_cap.cap & IEEE80211_VHT_CAP_SHORT_GI_80; in _rtl_rc_rate_set_series()
163 if (sta && sta->vht_cap.vht_supported) in _rtl_rc_rate_set_series()
178 if (sta && sta->vht_cap.vht_supported && in _rtl_rc_rate_set_series()
/Linux-v4.19/drivers/staging/rtlwifi/
Dbase.c230 struct ieee80211_sta_vht_cap *vht_cap) in _rtl_init_hw_vht_capab() argument
239 vht_cap->vht_supported = true; in _rtl_init_hw_vht_capab()
240 vht_cap->cap = in _rtl_init_hw_vht_capab()
262 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in _rtl_init_hw_vht_capab()
263 vht_cap->vht_mcs.rx_highest = in _rtl_init_hw_vht_capab()
265 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); in _rtl_init_hw_vht_capab()
266 vht_cap->vht_mcs.tx_highest = in _rtl_init_hw_vht_capab()
271 vht_cap->vht_supported = true; in _rtl_init_hw_vht_capab()
272 vht_cap->cap = in _rtl_init_hw_vht_capab()
294 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in _rtl_init_hw_vht_capab()
[all …]
Drc.c111 sgi_80 = sta->vht_cap.cap & IEEE80211_VHT_CAP_SHORT_GI_80; in _rtl_rc_rate_set_series()
130 if (sta && sta->vht_cap.vht_supported) in _rtl_rc_rate_set_series()
145 if (sta && sta->vht_cap.vht_supported && in _rtl_rc_rate_set_series()
Dcore.c883 if (sta->vht_cap.vht_supported) in rtl_op_sta_add()
900 if (sta->vht_cap.vht_supported) in rtl_op_sta_add()
1131 if (sta->vht_cap.vht_supported) { in rtl_op_bss_info_changed()
1292 if (sta->vht_cap.vht_supported) in rtl_op_bss_info_changed()
1334 if (sta->vht_cap.vht_supported) { in rtl_op_bss_info_changed()
1361 if (sta->vht_cap.vht_supported) in rtl_op_bss_info_changed()
/Linux-v4.19/net/wireless/
Dchan.c728 struct ieee80211_sta_vht_cap *vht_cap; in cfg80211_chandef_usable() local
735 vht_cap = &wiphy->bands[chandef->chan->band]->vht_cap; in cfg80211_chandef_usable()
769 cap = vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; in cfg80211_chandef_usable()
773 if (!vht_cap->vht_supported) in cfg80211_chandef_usable()
779 if (!vht_cap->vht_supported) in cfg80211_chandef_usable()
781 cap = vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; in cfg80211_chandef_usable()
/Linux-v4.19/drivers/net/wireless/ath/ath10k/
Dmac.c2465 const struct ieee80211_sta_vht_cap *vht_cap = &sta->vht_cap; in ath10k_peer_assoc_h_vht() local
2477 if (!vht_cap->vht_supported) in ath10k_peer_assoc_h_vht()
2491 arg->peer_vht_caps = vht_cap->cap; in ath10k_peer_assoc_h_vht()
2493 ampdu_factor = (vht_cap->cap & in ath10k_peer_assoc_h_vht()
2516 vht_mcs = __le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map) >> in ath10k_peer_assoc_h_vht()
2525 __le16_to_cpu(vht_cap->vht_mcs.rx_highest); in ath10k_peer_assoc_h_vht()
2527 __le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map); in ath10k_peer_assoc_h_vht()
2529 __le16_to_cpu(vht_cap->vht_mcs.tx_highest); in ath10k_peer_assoc_h_vht()
2531 __le16_to_cpu(vht_cap->vht_mcs.tx_mcs_map), vht_mcs_mask); in ath10k_peer_assoc_h_vht()
2537 (sta->vht_cap.cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK)) { in ath10k_peer_assoc_h_vht()
[all …]
/Linux-v4.19/drivers/net/wireless/quantenna/qtnfmac/
Dcommands.c312 if (s->vht_cap) { in qtnf_cmd_send_start_ap()
314 skb_put(cmd_skb, sizeof(*tlv) + sizeof(*s->vht_cap)); in qtnf_cmd_send_start_ap()
317 tlv->len = cpu_to_le16(sizeof(*s->vht_cap)); in qtnf_cmd_send_start_ap()
318 memcpy(tlv->val, s->vht_cap, sizeof(*s->vht_cap)); in qtnf_cmd_send_start_ap()
1420 const struct ieee80211_vht_cap *vht_cap = in qtnf_cmd_resp_band_fill_vhtcap() local
1424 bcap->cap = le32_to_cpu(vht_cap->vht_cap_info); in qtnf_cmd_resp_band_fill_vhtcap()
1425 memcpy(&bcap->vht_mcs, &vht_cap->supp_mcs, sizeof(bcap->vht_mcs)); in qtnf_cmd_resp_band_fill_vhtcap()
1443 memset(&band->vht_cap, 0, sizeof(band->vht_cap)); in qtnf_cmd_resp_fill_band_info()
1576 &band->vht_cap); in qtnf_cmd_resp_fill_band_info()

123