Home
last modified time | relevance | path

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

1234

/linux/net/mac80211/
H A 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 …]
H A Dvht.c130 if (!link_sta->pub->ht_cap.ht_supported) in ieee80211_vht_cap_ie_to_sta_vht_cap()
405 return link_sta->pub->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? in __ieee80211_sta_cap_rx_bw()
455 if (!link_sta->pub->ht_cap.ht_supported) in ieee80211_sta_cap_chan_bw()
458 return link_sta->pub->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? in ieee80211_sta_cap_chan_bw()
483 if (!link_sta->pub->ht_cap.ht_supported) in ieee80211_sta_rx_bw_to_chan_width()
604 if (link_sta->pub->ht_cap.ht_supported) { in ieee80211_sta_init_nss()
605 if (link_sta->pub->ht_cap.mcs.rx_mask[0]) in ieee80211_sta_init_nss()
607 if (link_sta->pub->ht_cap.mcs.rx_mask[1]) in ieee80211_sta_init_nss()
609 if (link_sta->pub->ht_cap.mcs.rx_mask[2]) in ieee80211_sta_init_nss()
611 if (link_sta->pub->ht_cap.mcs.rx_mask[3]) in ieee80211_sta_init_nss()
H A Dtdls.c373 struct ieee80211_sta_ht_cap ht_cap; in ieee80211_tdls_add_setup_start_ies() local
451 memcpy(&ht_cap, &sband->ht_cap, sizeof(ht_cap)); in ieee80211_tdls_add_setup_start_ies()
455 ht_cap.ht_supported) { in ieee80211_tdls_add_setup_start_ies()
456 ieee80211_apply_htcap_overrides(sdata, &ht_cap); in ieee80211_tdls_add_setup_start_ies()
459 ht_cap.cap |= WLAN_HT_CAP_SM_PS_DISABLED in ieee80211_tdls_add_setup_start_ies()
463 ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); in ieee80211_tdls_add_setup_start_ies()
465 ht_cap in ieee80211_tdls_add_setup_start_ies()
[all...]
/linux/drivers/net/wireless/marvell/mwifiex/
H A D11n.c26 struct ieee80211_ht_cap *ht_cap) in mwifiex_fill_cap_info() argument
28 uint16_t ht_ext_cap = le16_to_cpu(ht_cap->extended_ht_cap_info); in mwifiex_fill_cap_info()
37 ht_cap->ampdu_params_info = in mwifiex_fill_cap_info()
38 (sband->ht_cap.ampdu_factor & in mwifiex_fill_cap_info()
40 ((sband->ht_cap.ampdu_density << in mwifiex_fill_cap_info()
44 memcpy((u8 *)&ht_cap->mcs, &sband->ht_cap.mcs, in mwifiex_fill_cap_info()
45 sizeof(sband->ht_cap.mcs)); in mwifiex_fill_cap_info()
48 (sband->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 && in mwifiex_fill_cap_info()
52 SETHT_MCS32(ht_cap->mcs.rx_mask); in mwifiex_fill_cap_info()
57 ht_cap->cap_info = cpu_to_le16(sband->ht_cap.cap); in mwifiex_fill_cap_info()
[all …]
H A Duap_cmd.c154 memcpy(&bss_cfg->ht_cap, ht_ie + 2, in mwifiex_set_ht_params()
158 memset(&bss_cfg->ht_cap, 0, sizeof(struct ieee80211_ht_cap)); in mwifiex_set_ht_params()
159 bss_cfg->ht_cap.cap_info = cpu_to_le16(MWIFIEX_DEF_HT_CAP); in mwifiex_set_ht_params()
160 bss_cfg->ht_cap.ampdu_params_info = MWIFIEX_DEF_AMPDU; in mwifiex_set_ht_params()
626 if (bss_cfg->ht_cap.cap_info) { in mwifiex_uap_bss_param_prepare()
631 htcap->ht_cap.cap_info = bss_cfg->ht_cap.cap_info; in mwifiex_uap_bss_param_prepare()
632 htcap->ht_cap.ampdu_params_info = in mwifiex_uap_bss_param_prepare()
633 bss_cfg->ht_cap.ampdu_params_info; in mwifiex_uap_bss_param_prepare()
634 memcpy(&htcap->ht_cap.mcs, &bss_cfg->ht_cap.mcs, in mwifiex_uap_bss_param_prepare()
636 htcap->ht_cap.extended_ht_cap_info = in mwifiex_uap_bss_param_prepare()
[all …]
H A Djoin.c884 struct mwifiex_ie_types_htcap *ht_cap; in mwifiex_cmd_802_11_ad_hoc_start() local
1074 ht_cap = (struct mwifiex_ie_types_htcap *) pos; in mwifiex_cmd_802_11_ad_hoc_start()
1075 memset(ht_cap, 0, sizeof(struct mwifiex_ie_types_htcap)); in mwifiex_cmd_802_11_ad_hoc_start()
1076 ht_cap->header.type = cpu_to_le16(WLAN_EID_HT_CAPABILITY); in mwifiex_cmd_802_11_ad_hoc_start()
1077 ht_cap->header.len = in mwifiex_cmd_802_11_ad_hoc_start()
1081 mwifiex_fill_cap_info(priv, radio_type, &ht_cap->ht_cap); in mwifiex_cmd_802_11_ad_hoc_start()
1087 tmp_ht_cap = le16_to_cpu(ht_cap->ht_cap.cap_info); in mwifiex_cmd_802_11_ad_hoc_start()
1090 ht_cap->ht_cap.cap_info = cpu_to_le16(tmp_ht_cap); in mwifiex_cmd_802_11_ad_hoc_start()
/linux/net/mac80211/tests/
H A Dutil.c277 sband->ht_cap.ht_supported = band != NL80211_BAND_6GHZ; in t_sdata_init()
278 sband->ht_cap.cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 | in t_sdata_init()
283 sband->ht_cap.ampdu_factor = 0x3; in t_sdata_init()
284 sband->ht_cap.ampdu_density = 0x6; in t_sdata_init()
285 memset(&sband->ht_cap.mcs, 0, sizeof(sband->ht_cap.mcs)); in t_sdata_init()
286 sband->ht_cap.mcs.rx_mask[0] = 0xff; in t_sdata_init()
287 sband->ht_cap.mcs.rx_mask[1] = 0xff; in t_sdata_init()
288 sband->ht_cap.mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; in t_sdata_init()
/linux/drivers/net/wireless/ti/wl18xx/
H A 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()
/linux/drivers/net/wireless/mediatek/mt7601u/
H A 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()
/linux/drivers/net/wireless/realtek/rtw88/
H A Dmain.c148 .ht_cap = {0},
162 .ht_cap = {0},
1237 } else if (sta->deflink.ht_cap.ht_supported) { in rtw_update_sta_info()
1238 ra_mask |= ((u64)sta->deflink.ht_cap.mcs.rx_mask[3] << 36) | in rtw_update_sta_info()
1239 ((u64)sta->deflink.ht_cap.mcs.rx_mask[2] << 28) | in rtw_update_sta_info()
1240 (sta->deflink.ht_cap.mcs.rx_mask[1] << 20) | in rtw_update_sta_info()
1241 (sta->deflink.ht_cap.mcs.rx_mask[0] << 12); in rtw_update_sta_info()
1242 if (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_RX_STBC) in rtw_update_sta_info()
1244 if (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_LDPC_CODING) in rtw_update_sta_info()
1260 } else if (sta->deflink.ht_cap.ht_supported) { in rtw_update_sta_info()
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/
H A Drc.c124 sgi_20 = sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_SGI_20; in _rtl_rc_rate_set_series()
125 sgi_40 = sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_SGI_40; in _rtl_rc_rate_set_series()
138 if (sta && (sta->deflink.ht_cap.cap & in _rtl_rc_rate_set_series()
152 if (sta && sta->deflink.ht_cap.ht_supported && in _rtl_rc_rate_set_series()
232 if (sta->deflink.ht_cap.ht_supported && in rtl_tx_status()
H A Drc.h20 u8 ht_cap; member
/linux/drivers/net/wireless/ti/wlcore/
H A 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()
/linux/drivers/staging/rtl8723bs/core/
H A Drtw_ap.c481 (phtpriv_sta->ht_cap.ampdu_params_info & in update_sta_info_apmode()
485 if ((phtpriv_sta->ht_cap.cap_info & in update_sta_info_apmode()
486 phtpriv_ap->ht_cap.cap_info) & in update_sta_info_apmode()
498 if ((phtpriv_sta->ht_cap.cap_info & in update_sta_info_apmode()
499 phtpriv_ap->ht_cap.cap_info) & in update_sta_info_apmode()
504 if ((phtpriv_sta->ht_cap.cap_info & in update_sta_info_apmode()
505 phtpriv_ap->ht_cap.cap_info) & in update_sta_info_apmode()
517 GET_HT_CAPABILITY_ELE_LDPC_CAP((u8 *)(&phtpriv_sta->ht_cap))) in update_sta_info_apmode()
522 GET_HT_CAPABILITY_ELE_RX_STBC((u8 *)(&phtpriv_sta->ht_cap))) in update_sta_info_apmode()
578 if ((phtpriv_ap->ht_cap.cap_info) & cpu_to_le16(IEEE80211_HT_CAP_SGI_20)) in update_ap_info()
[all …]
/linux/drivers/net/wireless/st/cw1200/
H A 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()
/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76_connac_mcu.c795 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 …]
/linux/drivers/net/wireless/intel/iwlegacy/
H A D4965-rs.c624 return (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_GRN_FLD) && in il4965_rs_use_green()
1161 if (!conf_is_ht(conf) || !sta->deflink.ht_cap.ht_supported) in il4965_rs_switch_to_mimo2()
1179 if (il_is_ht40_tx_allowed(il, &sta->deflink.ht_cap)) in il4965_rs_switch_to_mimo2()
1214 if (!conf_is_ht(conf) || !sta->deflink.ht_cap.ht_supported) in il4965_rs_switch_to_siso()
1225 if (il_is_ht40_tx_allowed(il, &sta->deflink.ht_cap)) in il4965_rs_switch_to_siso()
1381 struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in il4965_rs_move_siso_to_other() local
1442 !(ht_cap->cap & IEEE80211_HT_CAP_SGI_20)) in il4965_rs_move_siso_to_other()
1445 !(ht_cap->cap & IEEE80211_HT_CAP_SGI_40)) in il4965_rs_move_siso_to_other()
1504 struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in il4965_rs_move_mimo2_to_other() local
1565 !(ht_cap->cap & IEEE80211_HT_CAP_SGI_20)) in il4965_rs_move_mimo2_to_other()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Drs.c1225 if (!conf_is_ht(conf) || !sta->deflink.ht_cap.ht_supported) in rs_switch_to_mimo2()
1280 if (!conf_is_ht(conf) || !sta->deflink.ht_cap.ht_supported) in rs_switch_to_mimo3()
1336 if (!conf_is_ht(conf) || !sta->deflink.ht_cap.ht_supported) in rs_switch_to_siso()
1556 struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in rs_move_siso_to_other() local
1650 if (!tbl->is_ht40 && !(ht_cap->cap & in rs_move_siso_to_other()
1653 if (tbl->is_ht40 && !(ht_cap->cap & in rs_move_siso_to_other()
1726 struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in rs_move_mimo2_to_other() local
1816 if (!tbl->is_ht40 && !(ht_cap->cap & in rs_move_mimo2_to_other()
1819 if (tbl->is_ht40 && !(ht_cap->cap & in rs_move_mimo2_to_other()
1894 struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in rs_move_mimo3_to_other() local
[all …]
H A Drxon.c1262 struct ieee80211_sta_ht_cap *ht_cap; in iwlagn_check_needed_chains() local
1283 ht_cap = &sta->deflink.ht_cap; in iwlagn_check_needed_chains()
1291 if (ht_cap->mcs.rx_mask[1] == 0 && in iwlagn_check_needed_chains()
1292 ht_cap->mcs.rx_mask[2] == 0) { in iwlagn_check_needed_chains()
1294 } else if (!(ht_cap->mcs.tx_params & in iwlagn_check_needed_chains()
1298 } else if (ht_cap->mcs.tx_params & in iwlagn_check_needed_chains()
1309 maxstreams = (ht_cap->mcs.tx_params & in iwlagn_check_needed_chains()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192d/
H A Dhw_common.c788 curshortgi_40mhz = !!(sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_SGI_40); in rtl92d_update_hal_rate_table()
789 curshortgi_20mhz = !!(sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_SGI_20); in rtl92d_update_hal_rate_table()
796 ratr_value |= (sta->deflink.ht_cap.mcs.rx_mask[1] << 20 | in rtl92d_update_hal_rate_table()
797 sta->deflink.ht_cap.mcs.rx_mask[0] << 12); in rtl92d_update_hal_rate_table()
875 curshortgi_40mhz = !!(sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_SGI_40); in rtl92d_update_hal_rate_mask()
876 curshortgi_20mhz = !!(sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_SGI_20); in rtl92d_update_hal_rate_mask()
892 ratr_bitmap |= (sta->deflink.ht_cap.mcs.rx_mask[1] << 20 | in rtl92d_update_hal_rate_mask()
893 sta->deflink.ht_cap.mcs.rx_mask[0] << 12); in rtl92d_update_hal_rate_mask()
/linux/drivers/net/wireless/marvell/
H A Dmwl8k.c1997 if (priv->ap_fw && sta && sta->deflink.ht_cap.ht_supported && !eapol_frame && in mwl8k_txq_xmit()
2403 band->ht_cap.ht_supported = 1; in mwl8k_set_ht_caps()
2406 band->ht_cap.cap |= IEEE80211_HT_CAP_MAX_AMSDU; in mwl8k_set_ht_caps()
2408 band->ht_cap.cap |= IEEE80211_HT_CAP_GRN_FLD; in mwl8k_set_ht_caps()
2411 band->ht_cap.ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K; in mwl8k_set_ht_caps()
2412 band->ht_cap.ampdu_density = IEEE80211_HT_MPDU_DENSITY_NONE; in mwl8k_set_ht_caps()
2415 band->ht_cap.cap |= IEEE80211_HT_CAP_RX_STBC; in mwl8k_set_ht_caps()
2417 band->ht_cap.cap |= IEEE80211_HT_CAP_TX_STBC; in mwl8k_set_ht_caps()
2419 band->ht_cap.cap |= IEEE80211_HT_CAP_SGI_40; in mwl8k_set_ht_caps()
2421 band->ht_cap.cap |= IEEE80211_HT_CAP_SGI_20; in mwl8k_set_ht_caps()
[all …]
/linux/drivers/net/wireless/ath/ath11k/
H A Dmac.c1957 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 …]
/linux/drivers/net/wireless/ath/ath9k/
H A Dcommon-init.c240 &common->sbands[NL80211_BAND_2GHZ].ht_cap); in ath9k_cmn_reload_chainmask()
243 &common->sbands[NL80211_BAND_5GHZ].ht_cap); in ath9k_cmn_reload_chainmask()
/linux/drivers/net/wireless/rsi/
H A Drsi_91x_mac80211.c220 memset(&sbands->ht_cap, 0, sizeof(struct ieee80211_sta_ht_cap)); in rsi_register_rates_channels()
221 sbands->ht_cap.ht_supported = true; in rsi_register_rates_channels()
222 sbands->ht_cap.cap = (IEEE80211_HT_CAP_SUP_WIDTH_20_40 | in rsi_register_rates_channels()
225 sbands->ht_cap.ampdu_factor = IEEE80211_HT_MAX_AMPDU_16K; in rsi_register_rates_channels()
226 sbands->ht_cap.ampdu_density = IEEE80211_HT_MPDU_DENSITY_NONE; in rsi_register_rates_channels()
227 sbands->ht_cap.mcs.rx_mask[0] = 0xff; in rsi_register_rates_channels()
228 sbands->ht_cap.mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; in rsi_register_rates_channels()
1497 common->vif_info[0].is_ht = sta->deflink.ht_cap.ht_supported; in rsi_mac80211_sta_add()
1498 if (sta->deflink.ht_cap.ht_supported) { in rsi_mac80211_sta_add()
1501 if ((sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_SGI_20) || in rsi_mac80211_sta_add()
[all …]
/linux/drivers/net/wireless/ath/carl9170/
H A Dmain.c173 .ht_cap = CARL9170_HT_CAP,
181 .ht_cap = CARL9170_HT_CAP,
1309 if (sta->deflink.ht_cap.ht_supported) { in carl9170_op_sta_add()
1310 if (sta->deflink.ht_cap.ampdu_density > 6) { in carl9170_op_sta_add()
1322 sta_info->ampdu_max_len = 1 << (3 + sta->deflink.ht_cap.ampdu_factor); in carl9170_op_sta_add()
1338 if (sta->deflink.ht_cap.ht_supported) { in carl9170_op_sta_remove()
1905 carl9170_band_2GHz.ht_cap.mcs.tx_params |= tx_params; in carl9170_parse_eeprom()
1906 carl9170_band_5GHz.ht_cap.mcs.tx_params |= tx_params; in carl9170_parse_eeprom()
1972 carl9170_band_2GHz.ht_cap.ht_supported = false; in carl9170_register()
1973 carl9170_band_5GHz.ht_cap.ht_supported = false; in carl9170_register()

1234