Home
last modified time | relevance | path

Searched refs:ht_cap (Results 1 – 25 of 154) sorted by relevance

1234567

/kernel/linux/linux-5.10/net/mac80211/
Dht.c23 struct ieee80211_sta_ht_cap *ht_cap, in __check_htcap_disable() argument
29 ht_cap->cap &= ~flag; in __check_htcap_disable()
35 struct ieee80211_sta_ht_cap *ht_cap, in __check_htcap_enable() argument
42 ht_cap->cap |= flag; in __check_htcap_enable()
46 struct ieee80211_sta_ht_cap *ht_cap) in ieee80211_apply_htcap_overrides() argument
52 if (!ht_cap->ht_supported) in ieee80211_apply_htcap_overrides()
81 ht_cap->mcs.rx_mask[i] &= ~m; /* turn off all masked bits */ in ieee80211_apply_htcap_overrides()
83 ht_cap->mcs.rx_mask[i] |= (m & scaps[i]); in ieee80211_apply_htcap_overrides()
87 __check_htcap_disable(ht_capa, ht_capa_mask, ht_cap, in ieee80211_apply_htcap_overrides()
89 __check_htcap_disable(ht_capa, ht_capa_mask, ht_cap, in ieee80211_apply_htcap_overrides()
[all …]
Dvht.c128 if (!sta->sta.ht_cap.ht_supported) in ieee80211_vht_cap_ie_to_sta_vht_cap()
360 return sta->sta.ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? in ieee80211_sta_cap_rx_bw()
387 if (!sta->sta.ht_cap.ht_supported) in ieee80211_sta_cap_chan_bw()
390 return sta->sta.ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? in ieee80211_sta_cap_chan_bw()
413 if (!sta->sta.ht_cap.ht_supported) in ieee80211_sta_rx_bw_to_chan_width()
520 if (sta->sta.ht_cap.ht_supported) { in ieee80211_sta_set_rx_nss()
521 if (sta->sta.ht_cap.mcs.rx_mask[0]) in ieee80211_sta_set_rx_nss()
523 if (sta->sta.ht_cap.mcs.rx_mask[1]) in ieee80211_sta_set_rx_nss()
525 if (sta->sta.ht_cap.mcs.rx_mask[2]) in ieee80211_sta_set_rx_nss()
527 if (sta->sta.ht_cap.mcs.rx_mask[3]) in ieee80211_sta_set_rx_nss()
Dtdls.c368 struct ieee80211_sta_ht_cap ht_cap; in ieee80211_tdls_add_setup_start_ies() local
448 memcpy(&ht_cap, &sband->ht_cap, sizeof(ht_cap)); in ieee80211_tdls_add_setup_start_ies()
452 ht_cap.ht_supported) { in ieee80211_tdls_add_setup_start_ies()
453 ieee80211_apply_htcap_overrides(sdata, &ht_cap); in ieee80211_tdls_add_setup_start_ies()
456 ht_cap.cap |= WLAN_HT_CAP_SM_PS_DISABLED in ieee80211_tdls_add_setup_start_ies()
460 ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); in ieee80211_tdls_add_setup_start_ies()
462 ht_cap.ht_supported && sta->sta.ht_cap.ht_supported) { in ieee80211_tdls_add_setup_start_ies()
464 memcpy(&ht_cap, &sta->sta.ht_cap, sizeof(ht_cap)); in ieee80211_tdls_add_setup_start_ies()
467 ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); in ieee80211_tdls_add_setup_start_ies()
470 if (ht_cap.ht_supported && in ieee80211_tdls_add_setup_start_ies()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/
D11n.c38 struct ieee80211_ht_cap *ht_cap) in mwifiex_fill_cap_info() argument
40 uint16_t ht_ext_cap = le16_to_cpu(ht_cap->extended_ht_cap_info); in mwifiex_fill_cap_info()
49 ht_cap->ampdu_params_info = in mwifiex_fill_cap_info()
50 (sband->ht_cap.ampdu_factor & in mwifiex_fill_cap_info()
52 ((sband->ht_cap.ampdu_density << in mwifiex_fill_cap_info()
56 memcpy((u8 *)&ht_cap->mcs, &sband->ht_cap.mcs, in mwifiex_fill_cap_info()
57 sizeof(sband->ht_cap.mcs)); in mwifiex_fill_cap_info()
60 (sband->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 && in mwifiex_fill_cap_info()
64 SETHT_MCS32(ht_cap->mcs.rx_mask); in mwifiex_fill_cap_info()
69 ht_cap->cap_info = cpu_to_le16(sband->ht_cap.cap); in mwifiex_fill_cap_info()
[all …]
Duap_cmd.c170 memcpy(&bss_cfg->ht_cap, ht_ie + 2, in mwifiex_set_ht_params()
174 memset(&bss_cfg->ht_cap, 0, sizeof(struct ieee80211_ht_cap)); in mwifiex_set_ht_params()
175 bss_cfg->ht_cap.cap_info = cpu_to_le16(MWIFIEX_DEF_HT_CAP); in mwifiex_set_ht_params()
176 bss_cfg->ht_cap.ampdu_params_info = MWIFIEX_DEF_AMPDU; in mwifiex_set_ht_params()
634 if (bss_cfg->ht_cap.cap_info) { in mwifiex_uap_bss_param_prepare()
639 htcap->ht_cap.cap_info = bss_cfg->ht_cap.cap_info; in mwifiex_uap_bss_param_prepare()
640 htcap->ht_cap.ampdu_params_info = in mwifiex_uap_bss_param_prepare()
641 bss_cfg->ht_cap.ampdu_params_info; in mwifiex_uap_bss_param_prepare()
642 memcpy(&htcap->ht_cap.mcs, &bss_cfg->ht_cap.mcs, in mwifiex_uap_bss_param_prepare()
644 htcap->ht_cap.extended_ht_cap_info = in mwifiex_uap_bss_param_prepare()
[all …]
Djoin.c855 struct mwifiex_ie_types_htcap *ht_cap; in mwifiex_cmd_802_11_ad_hoc_start() local
1045 ht_cap = (struct mwifiex_ie_types_htcap *) pos; in mwifiex_cmd_802_11_ad_hoc_start()
1046 memset(ht_cap, 0, sizeof(struct mwifiex_ie_types_htcap)); in mwifiex_cmd_802_11_ad_hoc_start()
1047 ht_cap->header.type = cpu_to_le16(WLAN_EID_HT_CAPABILITY); in mwifiex_cmd_802_11_ad_hoc_start()
1048 ht_cap->header.len = in mwifiex_cmd_802_11_ad_hoc_start()
1052 mwifiex_fill_cap_info(priv, radio_type, &ht_cap->ht_cap); in mwifiex_cmd_802_11_ad_hoc_start()
1058 tmp_ht_cap = le16_to_cpu(ht_cap->ht_cap.cap_info); in mwifiex_cmd_802_11_ad_hoc_start()
1061 ht_cap->ht_cap.cap_info = cpu_to_le16(tmp_ht_cap); in mwifiex_cmd_802_11_ad_hoc_start()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
Drs-fw.c99 struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in rs_fw_sgi_cw_support() local
107 if (ht_cap->cap & IEEE80211_HT_CAP_SGI_20) in rs_fw_sgi_cw_support()
109 if (ht_cap->cap & IEEE80211_HT_CAP_SGI_40) in rs_fw_sgi_cw_support()
123 struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in rs_fw_get_config_flags() local
139 } else if ((ht_cap->cap & IEEE80211_HT_CAP_RX_STBC) || in rs_fw_get_config_flags()
146 ((ht_cap->cap & IEEE80211_HT_CAP_LDPC_CODING) || in rs_fw_get_config_flags()
307 const struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in rs_fw_set_supp_rates() local
327 } else if (ht_cap->ht_supported) { in rs_fw_set_supp_rates()
330 cpu_to_le16(ht_cap->mcs.rx_mask[0]); in rs_fw_set_supp_rates()
338 cpu_to_le16(ht_cap->mcs.rx_mask[1]); in rs_fw_set_supp_rates()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wl18xx/
Dacx.c137 struct ieee80211_sta_ht_cap *ht_cap, in wl18xx_acx_set_peer_cap() argument
147 ht_cap->ht_supported, ht_cap->cap, rate_set); in wl18xx_acx_set_peer_cap()
155 if (allow_ht_operation && ht_cap->ht_supported) { in wl18xx_acx_set_peer_cap()
157 ht_capabilites = ht_cap->cap; in wl18xx_acx_set_peer_cap()
166 acx->ampdu_max_length = ht_cap->ampdu_factor; in wl18xx_acx_set_peer_cap()
167 acx->ampdu_min_spacing = ht_cap->ampdu_density; in wl18xx_acx_set_peer_cap()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtw88/
Dmain.c114 .ht_cap = {0},
128 .ht_cap = {0},
917 } else if (sta->ht_cap.ht_supported) { in rtw_update_sta_info()
918 ra_mask |= (sta->ht_cap.mcs.rx_mask[1] << 20) | in rtw_update_sta_info()
919 (sta->ht_cap.mcs.rx_mask[0] << 12); in rtw_update_sta_info()
920 if (sta->ht_cap.cap & IEEE80211_HT_CAP_RX_STBC) in rtw_update_sta_info()
922 if (sta->ht_cap.cap & IEEE80211_HT_CAP_LDPC_CODING) in rtw_update_sta_info()
934 } else if (sta->ht_cap.ht_supported) { in rtw_update_sta_info()
947 } else if (sta->ht_cap.ht_supported) { in rtw_update_sta_info()
970 is_support_sgi = sta->ht_cap.ht_supported && in rtw_update_sta_info()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt7601u/
Dinit.c522 struct ieee80211_sta_ht_cap *ht_cap; in mt76_init_sband() local
536 ht_cap = &sband->ht_cap; in mt76_init_sband()
537 ht_cap->ht_supported = true; in mt76_init_sband()
538 ht_cap->cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 | in mt76_init_sband()
544 ht_cap->mcs.rx_mask[0] = 0xff; in mt76_init_sband()
545 ht_cap->mcs.rx_mask[4] = 0x1; in mt76_init_sband()
546 ht_cap->mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; in mt76_init_sband()
547 ht_cap->ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K; in mt76_init_sband()
548 ht_cap->ampdu_density = IEEE80211_HT_MPDU_DENSITY_2; in mt76_init_sband()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/
Dbase.c120 .ht_cap = {0},
132 .ht_cap = {0},
153 struct ieee80211_sta_ht_cap *ht_cap) in _rtl_init_hw_ht_capab() argument
158 ht_cap->ht_supported = true; in _rtl_init_hw_ht_capab()
159 ht_cap->cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 | in _rtl_init_hw_ht_capab()
165 ht_cap->cap &= ~IEEE80211_HT_CAP_MAX_AMSDU; in _rtl_init_hw_ht_capab()
171 ht_cap->ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K; in _rtl_init_hw_ht_capab()
174 ht_cap->ampdu_density = IEEE80211_HT_MPDU_DENSITY_16; in _rtl_init_hw_ht_capab()
176 ht_cap->mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; in _rtl_init_hw_ht_capab()
190 ht_cap->mcs.rx_mask[0] = 0xFF; in _rtl_init_hw_ht_capab()
[all …]
Drc.c124 sgi_20 = sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20; in _rtl_rc_rate_set_series()
125 sgi_40 = sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40; in _rtl_rc_rate_set_series()
138 if (sta && (sta->ht_cap.cap & in _rtl_rc_rate_set_series()
152 if (sta && sta->ht_cap.ht_supported && in _rtl_rc_rate_set_series()
232 if (sta->ht_cap.ht_supported && in rtl_tx_status()
Drc.h20 u8 ht_cap; member
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wlcore/
Dwlcore.h100 struct ieee80211_sta_ht_cap *ht_cap,
452 struct ieee80211_sta_ht_cap ht_cap[WLCORE_NUM_BANDS]; member
514 struct ieee80211_sta_ht_cap *ht_cap) in wlcore_set_ht_cap() argument
516 memcpy(&wl->ht_cap[band], ht_cap, sizeof(*ht_cap)); in wlcore_set_ht_cap()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
Dmac.c1015 const struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in ath11k_peer_assoc_h_ht() local
1029 if (!ht_cap->ht_supported) in ath11k_peer_assoc_h_ht()
1041 ht_cap->ampdu_factor)) - 1; in ath11k_peer_assoc_h_ht()
1044 ath11k_parse_mpdudensity(ht_cap->ampdu_density); in ath11k_peer_assoc_h_ht()
1046 arg->peer_ht_caps = ht_cap->cap; in ath11k_peer_assoc_h_ht()
1049 if (ht_cap->cap & IEEE80211_HT_CAP_LDPC_CODING) in ath11k_peer_assoc_h_ht()
1058 if (ht_cap->cap & (IEEE80211_HT_CAP_SGI_20 | in ath11k_peer_assoc_h_ht()
1063 if (ht_cap->cap & IEEE80211_HT_CAP_TX_STBC) { in ath11k_peer_assoc_h_ht()
1068 if (ht_cap->cap & IEEE80211_HT_CAP_RX_STBC) { in ath11k_peer_assoc_h_ht()
1069 stbc = ht_cap->cap & IEEE80211_HT_CAP_RX_STBC; in ath11k_peer_assoc_h_ht()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/st/cw1200/
Dcw1200.h54 struct ieee80211_sta_ht_cap ht_cap; member
308 (ht_info->ht_cap.cap & IEEE80211_HT_CAP_GRN_FLD) && in cw1200_ht_greenfield()
317 return ht_info->ht_cap.ampdu_density; in cw1200_ht_ampdu_density()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/
Dmac80211.c128 struct ieee80211_sta_ht_cap *ht_cap = &sband->ht_cap; in mt76_init_stream_cap() local
134 ht_cap->cap |= IEEE80211_HT_CAP_TX_STBC; in mt76_init_stream_cap()
136 ht_cap->cap &= ~IEEE80211_HT_CAP_TX_STBC; in mt76_init_stream_cap()
139 ht_cap->mcs.rx_mask[i] = i < nstream ? 0xff : 0; in mt76_init_stream_cap()
176 struct ieee80211_sta_ht_cap *ht_cap; in mt76_init_sband() local
196 ht_cap = &sband->ht_cap; in mt76_init_sband()
197 ht_cap->ht_supported = true; in mt76_init_sband()
198 ht_cap->cap |= IEEE80211_HT_CAP_SUP_WIDTH_20_40 | in mt76_init_sband()
204 ht_cap->mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; in mt76_init_sband()
205 ht_cap->ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K; in mt76_init_sband()
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/core/
Drtw_ap.c590 phtpriv_sta->ht_cap.ampdu_params_info & IEEE80211_HT_CAP_AMPDU_DENSITY in update_sta_info_apmode()
595 phtpriv_sta->ht_cap.cap_info & phtpriv_ap->ht_cap.cap_info in update_sta_info_apmode()
608 phtpriv_sta->ht_cap.cap_info & phtpriv_ap->ht_cap.cap_info in update_sta_info_apmode()
614 phtpriv_sta->ht_cap.cap_info & phtpriv_ap->ht_cap.cap_info in update_sta_info_apmode()
626 GET_HT_CAPABILITY_ELE_LDPC_CAP((u8 *)(&phtpriv_sta->ht_cap))) { in update_sta_info_apmode()
633 GET_HT_CAPABILITY_ELE_RX_STBC((u8 *)(&phtpriv_sta->ht_cap))) { in update_sta_info_apmode()
691 if ((phtpriv_ap->ht_cap.cap_info) & cpu_to_le16(IEEE80211_HT_CAP_SGI_20)) in update_ap_info()
695 if ((phtpriv_ap->ht_cap.cap_info) & cpu_to_le16(IEEE80211_HT_CAP_SGI_40)) in update_ap_info()
950 u16 cap, ht_cap = false; in rtw_check_beacon_data() local
1188 ht_cap = true; in rtw_check_beacon_data()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7915/
Dmcu.c156 struct ieee80211_sta_ht_cap *ht_cap; in mt7915_get_phy_mode() local
162 ht_cap = &sta->ht_cap; in mt7915_get_phy_mode()
174 ht_cap = &sband->ht_cap; in mt7915_get_phy_mode()
182 if (ht_cap->ht_supported) in mt7915_get_phy_mode()
190 if (ht_cap->ht_supported) in mt7915_get_phy_mode()
1613 if (sta->ht_cap.ht_supported) { in mt7915_mcu_sta_tlv()
1618 ht->ht_cap = cpu_to_le16(sta->ht_cap.cap); in mt7915_mcu_sta_tlv()
1666 if (sta->ht_cap.ht_supported) { in mt7915_mcu_wtbl_ht_tlv()
1670 ht->ldpc = sta->ht_cap.cap & IEEE80211_HT_CAP_LDPC_CODING; in mt7915_mcu_wtbl_ht_tlv()
1671 ht->af = sta->ht_cap.ampdu_factor; in mt7915_mcu_wtbl_ht_tlv()
[all …]
/kernel/linux/linux-5.10/drivers/staging/rtl8192u/ieee80211/
Dieee80211_wx.c134 struct ht_capability_ele *ht_cap = NULL; in rtl819x_translate_scan() local
138 ht_cap = (struct ht_capability_ele *)&network->bssht.bdHTCapBuf[4]; in rtl819x_translate_scan()
140 ht_cap = (struct ht_capability_ele *)&network->bssht.bdHTCapBuf[0]; in rtl819x_translate_scan()
141 is40M = (ht_cap->ChlWidth) ? 1 : 0; in rtl819x_translate_scan()
142 isShortGI = (ht_cap->ChlWidth) ? in rtl819x_translate_scan()
143 ((ht_cap->ShortGI40Mhz) ? 1 : 0) : in rtl819x_translate_scan()
144 ((ht_cap->ShortGI20Mhz) ? 1 : 0); in rtl819x_translate_scan()
146 max_mcs = HTGetHighestMCSRate(ieee, ht_cap->MCS, MCS_FILTER_ALL); in rtl819x_translate_scan()
/kernel/linux/linux-5.10/drivers/staging/rtl8192e/
Drtllib_wx.c139 struct ht_capab_ele *ht_cap = NULL; in rtl819x_translate_scan() local
144 ht_cap = (struct ht_capab_ele *) in rtl819x_translate_scan()
147 ht_cap = (struct ht_capab_ele *) in rtl819x_translate_scan()
149 is40M = (ht_cap->ChlWidth) ? 1 : 0; in rtl819x_translate_scan()
150 isShortGI = (ht_cap->ChlWidth) ? in rtl819x_translate_scan()
151 ((ht_cap->ShortGI40Mhz) ? 1 : 0) : in rtl819x_translate_scan()
152 ((ht_cap->ShortGI20Mhz) ? 1 : 0); in rtl819x_translate_scan()
154 max_mcs = HTGetHighestMCSRate(ieee, ht_cap->MCS, in rtl819x_translate_scan()
/kernel/linux/linux-5.10/drivers/staging/rtl8712/
Drtl871x_ht.h29 struct rtl_ieee80211_ht_cap ht_cap; member
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlegacy/
D4965-rs.c630 return (sta->ht_cap.cap & IEEE80211_HT_CAP_GRN_FLD) && in il4965_rs_use_green()
1167 if (!conf_is_ht(conf) || !sta->ht_cap.ht_supported) in il4965_rs_switch_to_mimo2()
1185 if (il_is_ht40_tx_allowed(il, &sta->ht_cap)) in il4965_rs_switch_to_mimo2()
1220 if (!conf_is_ht(conf) || !sta->ht_cap.ht_supported) in il4965_rs_switch_to_siso()
1231 if (il_is_ht40_tx_allowed(il, &sta->ht_cap)) in il4965_rs_switch_to_siso()
1387 struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in il4965_rs_move_siso_to_other() local
1448 !(ht_cap->cap & IEEE80211_HT_CAP_SGI_20)) in il4965_rs_move_siso_to_other()
1451 !(ht_cap->cap & IEEE80211_HT_CAP_SGI_40)) in il4965_rs_move_siso_to_other()
1510 struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in il4965_rs_move_mimo2_to_other() local
1571 !(ht_cap->cap & IEEE80211_HT_CAP_SGI_20)) in il4965_rs_move_mimo2_to_other()
[all …]
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/include/
Drtw_ht.h23 struct ieee80211_ht_cap ht_cap; member
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/dvm/
Drs.c1247 if (!conf_is_ht(conf) || !sta->ht_cap.ht_supported) in rs_switch_to_mimo2()
1302 if (!conf_is_ht(conf) || !sta->ht_cap.ht_supported) in rs_switch_to_mimo3()
1358 if (!conf_is_ht(conf) || !sta->ht_cap.ht_supported) in rs_switch_to_siso()
1578 struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in rs_move_siso_to_other() local
1672 if (!tbl->is_ht40 && !(ht_cap->cap & in rs_move_siso_to_other()
1675 if (tbl->is_ht40 && !(ht_cap->cap & in rs_move_siso_to_other()
1748 struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in rs_move_mimo2_to_other() local
1838 if (!tbl->is_ht40 && !(ht_cap->cap & in rs_move_mimo2_to_other()
1841 if (tbl->is_ht40 && !(ht_cap->cap & in rs_move_mimo2_to_other()
1916 struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in rs_move_mimo3_to_other() local
[all …]

1234567