Home
last modified time | relevance | path

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

123

/Linux-v5.4/net/mac80211/
Dvht.c18 struct ieee80211_sta_vht_cap *vht_cap, in __check_vhtcap_disable() argument
25 vht_cap->cap &= ~flag; in __check_vhtcap_disable()
29 struct ieee80211_sta_vht_cap *vht_cap) in ieee80211_apply_vhtcap_overrides() argument
34 if (!vht_cap->vht_supported) in ieee80211_apply_vhtcap_overrides()
40 __check_vhtcap_disable(sdata, vht_cap, 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()
[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.c1151 if (!mi->sta->vht_cap.vht_supported) in minstrel_ht_get_max_amsdu_len()
1391 struct ieee80211_sta_vht_cap *vht_cap = &sta->vht_cap; in minstrel_ht_update_caps() local
1405 if (vht_cap->vht_supported) in minstrel_ht_update_caps()
1406 use_vht = vht_cap->vht_mcs.tx_mcs_map != cpu_to_le16(~0); in minstrel_ht_update_caps()
1439 stbc = (vht_cap->cap & IEEE80211_VHT_CAP_RXSTBC_MASK) >> in minstrel_ht_update_caps()
1442 ldpc = vht_cap->cap & IEEE80211_VHT_CAP_RXLDPC; in minstrel_ht_update_caps()
1491 if (!vht_cap->vht_supported || in minstrel_ht_update_caps()
1499 !(vht_cap->cap & IEEE80211_VHT_CAP_SHORT_GI_80))) { in minstrel_ht_update_caps()
1512 vht_cap->vht_mcs.tx_mcs_map); in minstrel_ht_update_caps()
Dmesh.c482 if (!sband->vht_cap.vht_supported || in mesh_add_vht_cap_ie()
492 ieee80211_ie_build_vht_cap(pos, &sband->vht_cap, sband->vht_cap.cap); in mesh_add_vht_cap_ie()
504 struct ieee80211_sta_vht_cap *vht_cap; in mesh_add_vht_oper_ie() local
517 vht_cap = &sband->vht_cap; in mesh_add_vht_oper_ie()
519 if (!vht_cap->vht_supported || in mesh_add_vht_oper_ie()
529 ieee80211_ie_build_vht_oper(pos, vht_cap, in mesh_add_vht_oper_ie()
Dmlme.c203 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()
4640 const struct ieee80211_vht_cap *vht_cap; in ieee80211_ht_vht_rx_chains() local
4660 if (vht_cap_ie && vht_cap_ie[1] >= sizeof(*vht_cap)) { in ieee80211_ht_vht_rx_chains()
4664 vht_cap = (void *)(vht_cap_ie + 2); in ieee80211_ht_vht_rx_chains()
[all …]
Dmain.c973 supp_vht = supp_vht || sband->vht_cap.vht_supported; in ieee80211_register_hw()
1226 if (!sband || !sband->vht_cap.vht_supported) in ieee80211_register_hw()
1229 ie_cap = !!(sband->vht_cap.vht_mcs.tx_highest & in ieee80211_register_hw()
1244 sband->vht_cap.vht_mcs.tx_highest ^= in ieee80211_register_hw()
Dibss.c197 sband->vht_cap.vht_supported) { in ieee80211_ibss_build_presp()
198 pos = ieee80211_ie_build_vht_cap(pos, &sband->vht_cap, in ieee80211_ibss_build_presp()
199 sband->vht_cap.cap); in ieee80211_ibss_build_presp()
200 pos = ieee80211_ie_build_vht_oper(pos, &sband->vht_cap, in ieee80211_ibss_build_presp()
1069 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()
/Linux-v5.4/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.c170 struct ieee80211_vht_cap vht_cap; in mwifiex_tdls_add_vht_capab() local
177 memset(&vht_cap, 0, sizeof(struct ieee80211_vht_cap)); in mwifiex_tdls_add_vht_capab()
179 mwifiex_fill_vht_cap_tlv(priv, &vht_cap, priv->curr_bss_params.band); in mwifiex_tdls_add_vht_capab()
180 memcpy(pos, &vht_cap, sizeof(vht_cap)); in mwifiex_tdls_add_vht_capab()
238 struct ieee80211_vht_cap *vht_cap, *ap_vht_cap = NULL; in mwifiex_tdls_add_vht_oper() local
284 vht_cap = &sta_ptr->tdls_cap.vhtcap; in mwifiex_tdls_add_vht_oper()
287 GET_VHTCAP_CHWDSET(le32_to_cpu(vht_cap->vht_cap_info)); in mwifiex_tdls_add_vht_oper()
315 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_capabilities() local
88 vht_cap = (void *)(ele_hdr + 2); in mwifiex_check_ibss_peer_capabilities()
90 switch (le32_to_cpu(vht_cap->vht_cap_info) & 0x3) { in mwifiex_check_ibss_peer_capabilities()
/Linux-v5.4/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
111 if (vht_cap->cap & IEEE80211_VHT_CAP_SHORT_GI_80) in rs_fw_sgi_cw_support()
113 if (vht_cap->cap & IEEE80211_VHT_CAP_SHORT_GI_160) in rs_fw_sgi_cw_support()
124 struct ieee80211_sta_vht_cap *vht_cap = &sta->vht_cap; in rs_fw_get_config_flags() local
126 bool vht_ena = vht_cap->vht_supported; in rs_fw_get_config_flags()
141 (vht_cap->cap & IEEE80211_VHT_CAP_RXSTBC_MASK))) in rs_fw_get_config_flags()
147 (vht_ena && (vht_cap->cap & IEEE80211_VHT_CAP_RXLDPC)))) in rs_fw_get_config_flags()
165 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
168 u16 rx_mcs = le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map) & in rs_fw_vht_highest_rx_mcs_index()
189 const struct ieee80211_sta_vht_cap *vht_cap, in rs_fw_vht_set_enabled_rates() argument
[all …]
Drs.c177 struct ieee80211_sta_vht_cap *vht_cap = &sta->vht_cap; in rs_sgi_allow() local
185 if (is_ht80(rate) && (vht_cap->cap & in rs_sgi_allow()
188 if (is_ht160(rate) && (vht_cap->cap & in rs_sgi_allow()
1415 struct ieee80211_sta_vht_cap *sta_vht_cap = &sta->vht_cap; in rs_bw_from_sta_bw()
1416 struct ieee80211_vht_cap vht_cap = { in rs_bw_from_sta_bw() local
1431 if (ieee80211_get_vht_max_nss(&vht_cap, in rs_bw_from_sta_bw()
2582 if (sta->vht_cap.vht_supported && in rs_get_initial_rate()
2775 static int rs_vht_highest_rx_mcs_index(struct ieee80211_sta_vht_cap *vht_cap, in rs_vht_highest_rx_mcs_index() argument
2778 u16 rx_mcs = le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map) & in rs_vht_highest_rx_mcs_index()
2794 struct ieee80211_sta_vht_cap *vht_cap, in rs_vht_set_enabled_rates() argument
[all …]
Dsf.c165 if (sta->ht_cap.ht_supported || sta->vht_cap.vht_supported) { in iwl_mvm_fill_sf_command()
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/
Diwl-nvm-parse.c398 struct ieee80211_sta_vht_cap *vht_cap, in iwl_init_vht_hw_capab() argument
407 vht_cap->vht_supported = true; in iwl_init_vht_hw_capab()
409 vht_cap->cap = IEEE80211_VHT_CAP_SHORT_GI_80 | in iwl_init_vht_hw_capab()
417 vht_cap->cap |= IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ | in iwl_init_vht_hw_capab()
421 vht_cap->cap |= IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE; in iwl_init_vht_hw_capab()
424 vht_cap->cap |= IEEE80211_VHT_CAP_RXLDPC; in iwl_init_vht_hw_capab()
432 vht_cap->cap |= IEEE80211_VHT_CAP_TXSTBC; in iwl_init_vht_hw_capab()
434 vht_cap->cap |= IEEE80211_VHT_CAP_TX_ANTENNA_PATTERN; in iwl_init_vht_hw_capab()
439 vht_cap->cap |= in iwl_init_vht_hw_capab()
442 vht_cap->cap |= IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_3895; in iwl_init_vht_hw_capab()
[all …]
/Linux-v5.4/drivers/net/wireless/realtek/rtw88/
Dmain.c97 .vht_cap = {0},
111 .vht_cap = {0},
406 u16 mcs_map = le16_to_cpu(sta->vht_cap.vht_mcs.rx_mcs_map); in get_vht_ra_mask()
549 if (sta->vht_cap.vht_supported) { in rtw_update_sta_info()
552 if (sta->vht_cap.cap & IEEE80211_VHT_CAP_RXSTBC_MASK) in rtw_update_sta_info()
554 if (sta->vht_cap.cap & IEEE80211_VHT_CAP_RXLDPC) in rtw_update_sta_info()
556 if (sta->vht_cap.cap & IEEE80211_VHT_CAP_SHORT_GI_80) in rtw_update_sta_info()
572 if (sta->vht_cap.vht_supported) { in rtw_update_sta_info()
583 if (sta->vht_cap.vht_supported) { in rtw_update_sta_info()
620 if (sta->vht_cap.vht_supported && ra_mask & 0xffc00000) { in rtw_update_sta_info()
[all …]
Dtx.c100 tx_mcs_map = le16_to_cpu(sta->vht_cap.vht_mcs.tx_mcs_map); in get_highest_vht_tx_rate()
263 if (sta->vht_cap.vht_supported) in rtw_tx_data_pkt_info_update()
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt76x0/
Dinit.c17 struct ieee80211_sta_vht_cap *vht_cap = &sband->vht_cap; in mt76x0_vht_cap_mask() local
21 vht_cap->cap &= ~IEEE80211_VHT_CAP_RXLDPC; in mt76x0_vht_cap_mask()
29 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in mt76x0_vht_cap_mask()
30 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); in mt76x0_vht_cap_mask()
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/
Dmac80211.c117 struct ieee80211_sta_vht_cap *vht_cap; in mt76_init_stream_cap() local
131 vht_cap = &sband->vht_cap; in mt76_init_stream_cap()
133 vht_cap->cap |= IEEE80211_VHT_CAP_TXSTBC; in mt76_init_stream_cap()
135 vht_cap->cap &= ~IEEE80211_VHT_CAP_TXSTBC; in mt76_init_stream_cap()
144 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in mt76_init_stream_cap()
145 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); in mt76_init_stream_cap()
164 struct ieee80211_sta_vht_cap *vht_cap; in mt76_init_sband() local
201 vht_cap = &sband->vht_cap; in mt76_init_sband()
202 vht_cap->vht_supported = true; in mt76_init_sband()
203 vht_cap->cap |= IEEE80211_VHT_CAP_RXLDPC | in mt76_init_sband()
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/
Dbase.c220 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()
255 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in _rtl_init_hw_vht_capab()
256 vht_cap->vht_mcs.rx_highest = in _rtl_init_hw_vht_capab()
258 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); 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()
287 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in _rtl_init_hw_vht_capab()
[all …]
Drc.c126 sgi_80 = sta->vht_cap.cap & IEEE80211_VHT_CAP_SHORT_GI_80; in _rtl_rc_rate_set_series()
141 if (sta && sta->vht_cap.vht_supported) in _rtl_rc_rate_set_series()
156 if (sta && sta->vht_cap.vht_supported && in _rtl_rc_rate_set_series()
/Linux-v5.4/net/wireless/
Dchan.c883 struct ieee80211_sta_vht_cap *vht_cap; in cfg80211_chandef_usable() local
891 vht_cap = &wiphy->bands[chandef->chan->band]->vht_cap; in cfg80211_chandef_usable()
935 cap = vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; in cfg80211_chandef_usable()
940 if (!vht_cap->vht_supported) in cfg80211_chandef_usable()
946 if (!vht_cap->vht_supported) in cfg80211_chandef_usable()
948 cap = vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; in cfg80211_chandef_usable()
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt7615/
Dmcu.c1381 if (sta->vht_cap.vht_supported) { in mt7615_mcu_set_ht_cap()
1388 wtbl_vht->ldpc = sta->vht_cap.cap & IEEE80211_VHT_CAP_RXLDPC; in mt7615_mcu_set_ht_cap()
1392 if (sta->vht_cap.cap & IEEE80211_VHT_CAP_SHORT_GI_80) in mt7615_mcu_set_ht_cap()
1394 if (sta->vht_cap.cap & IEEE80211_VHT_CAP_SHORT_GI_160) in mt7615_mcu_set_ht_cap()
1435 ntlv = sta->vht_cap.vht_supported ? 2 : 1; in mt7615_mcu_set_ht_cap()
1446 if (sta->vht_cap.vht_supported) { in mt7615_mcu_set_ht_cap()
1453 sta_vht->vht_cap = cpu_to_le32(sta->vht_cap.cap); in mt7615_mcu_set_ht_cap()
1454 sta_vht->vht_rx_mcs_map = sta->vht_cap.vht_mcs.rx_mcs_map; in mt7615_mcu_set_ht_cap()
1455 sta_vht->vht_tx_mcs_map = sta->vht_cap.vht_mcs.tx_mcs_map; in mt7615_mcu_set_ht_cap()
/Linux-v5.4/drivers/net/wireless/ath/ath10k/
Dmac.c2511 const struct ieee80211_sta_vht_cap *vht_cap = &sta->vht_cap; in ath10k_peer_assoc_h_vht() local
2523 if (!vht_cap->vht_supported) in ath10k_peer_assoc_h_vht()
2537 arg->peer_vht_caps = vht_cap->cap; in ath10k_peer_assoc_h_vht()
2539 ampdu_factor = (vht_cap->cap & in ath10k_peer_assoc_h_vht()
2562 vht_mcs = __le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map) >> in ath10k_peer_assoc_h_vht()
2571 __le16_to_cpu(vht_cap->vht_mcs.rx_highest); in ath10k_peer_assoc_h_vht()
2573 __le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map); in ath10k_peer_assoc_h_vht()
2575 __le16_to_cpu(vht_cap->vht_mcs.tx_highest); in ath10k_peer_assoc_h_vht()
2577 __le16_to_cpu(vht_cap->vht_mcs.tx_mcs_map), vht_mcs_mask); in ath10k_peer_assoc_h_vht()
2583 (sta->vht_cap.cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK)) { in ath10k_peer_assoc_h_vht()
[all …]
/Linux-v5.4/drivers/net/wireless/quantenna/qtnfmac/
Dcommands.c301 if (s->vht_cap) { in qtnf_cmd_send_start_ap()
303 skb_put(cmd_skb, sizeof(*tlv) + sizeof(*s->vht_cap)); in qtnf_cmd_send_start_ap()
306 tlv->len = cpu_to_le16(sizeof(*s->vht_cap)); in qtnf_cmd_send_start_ap()
307 memcpy(tlv->val, s->vht_cap, sizeof(*s->vht_cap)); in qtnf_cmd_send_start_ap()
1288 const struct ieee80211_vht_cap *vht_cap = in qtnf_cmd_resp_band_fill_vhtcap() local
1292 bcap->cap = le32_to_cpu(vht_cap->vht_cap_info); in qtnf_cmd_resp_band_fill_vhtcap()
1293 memcpy(&bcap->vht_mcs, &vht_cap->supp_mcs, sizeof(bcap->vht_mcs)); in qtnf_cmd_resp_band_fill_vhtcap()
1311 memset(&band->vht_cap, 0, sizeof(band->vht_cap)); in qtnf_cmd_resp_fill_band_info()
1444 &band->vht_cap); in qtnf_cmd_resp_fill_band_info()

123