Home
last modified time | relevance | path

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

123456

/Linux-v5.4/net/mac80211/
Dht.c22 struct ieee80211_sta_ht_cap *ht_cap, in __check_htcap_disable() argument
28 ht_cap->cap &= ~flag; in __check_htcap_disable()
34 struct ieee80211_sta_ht_cap *ht_cap, in __check_htcap_enable() argument
41 ht_cap->cap |= flag; in __check_htcap_enable()
45 struct ieee80211_sta_ht_cap *ht_cap) in ieee80211_apply_htcap_overrides() argument
51 if (!ht_cap->ht_supported) in ieee80211_apply_htcap_overrides()
80 ht_cap->mcs.rx_mask[i] &= ~m; /* turn off all masked bits */ in ieee80211_apply_htcap_overrides()
82 ht_cap->mcs.rx_mask[i] |= (m & scaps[i]); in ieee80211_apply_htcap_overrides()
86 __check_htcap_disable(ht_capa, ht_capa_mask, ht_cap, in ieee80211_apply_htcap_overrides()
88 __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()
342 return sta->sta.ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? in ieee80211_sta_cap_rx_bw()
369 if (!sta->sta.ht_cap.ht_supported) in ieee80211_sta_cap_chan_bw()
372 return sta->sta.ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? in ieee80211_sta_cap_chan_bw()
395 if (!sta->sta.ht_cap.ht_supported) in ieee80211_sta_rx_bw_to_chan_width()
467 if (sta->sta.ht_cap.ht_supported) { in ieee80211_sta_set_rx_nss()
468 if (sta->sta.ht_cap.mcs.rx_mask[0]) in ieee80211_sta_set_rx_nss()
470 if (sta->sta.ht_cap.mcs.rx_mask[1]) in ieee80211_sta_set_rx_nss()
472 if (sta->sta.ht_cap.mcs.rx_mask[2]) in ieee80211_sta_set_rx_nss()
474 if (sta->sta.ht_cap.mcs.rx_mask[3]) in ieee80211_sta_set_rx_nss()
Dtdls.c369 struct ieee80211_sta_ht_cap ht_cap; in ieee80211_tdls_add_setup_start_ies() local
449 memcpy(&ht_cap, &sband->ht_cap, sizeof(ht_cap)); in ieee80211_tdls_add_setup_start_ies()
453 ht_cap.ht_supported) { in ieee80211_tdls_add_setup_start_ies()
454 ieee80211_apply_htcap_overrides(sdata, &ht_cap); in ieee80211_tdls_add_setup_start_ies()
457 ht_cap.cap |= WLAN_HT_CAP_SM_PS_DISABLED in ieee80211_tdls_add_setup_start_ies()
461 ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); in ieee80211_tdls_add_setup_start_ies()
463 ht_cap.ht_supported && sta->sta.ht_cap.ht_supported) { in ieee80211_tdls_add_setup_start_ies()
465 memcpy(&ht_cap, &sta->sta.ht_cap, sizeof(ht_cap)); in ieee80211_tdls_add_setup_start_ies()
468 ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); in ieee80211_tdls_add_setup_start_ies()
471 if (ht_cap.ht_supported && in ieee80211_tdls_add_setup_start_ies()
[all …]
/Linux-v5.4/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
1043 ht_cap = (struct mwifiex_ie_types_htcap *) pos; in mwifiex_cmd_802_11_ad_hoc_start()
1044 memset(ht_cap, 0, sizeof(struct mwifiex_ie_types_htcap)); in mwifiex_cmd_802_11_ad_hoc_start()
1045 ht_cap->header.type = cpu_to_le16(WLAN_EID_HT_CAPABILITY); in mwifiex_cmd_802_11_ad_hoc_start()
1046 ht_cap->header.len = in mwifiex_cmd_802_11_ad_hoc_start()
1050 mwifiex_fill_cap_info(priv, radio_type, &ht_cap->ht_cap); in mwifiex_cmd_802_11_ad_hoc_start()
1056 tmp_ht_cap = le16_to_cpu(ht_cap->ht_cap.cap_info); in mwifiex_cmd_802_11_ad_hoc_start()
1059 ht_cap->ht_cap.cap_info = cpu_to_le16(tmp_ht_cap); in mwifiex_cmd_802_11_ad_hoc_start()
/Linux-v5.4/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()
282 const struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in rs_fw_set_supp_rates() local
302 } else if (ht_cap->ht_supported) { in rs_fw_set_supp_rates()
305 cpu_to_le16(ht_cap->mcs.rx_mask[0]); in rs_fw_set_supp_rates()
307 cpu_to_le16(ht_cap->mcs.rx_mask[1]); in rs_fw_set_supp_rates()
[all …]
/Linux-v5.4/drivers/net/wireless/realtek/rtw88/
Dmain.c96 .ht_cap = {0},
110 .ht_cap = {0},
558 } else if (sta->ht_cap.ht_supported) { in rtw_update_sta_info()
559 ra_mask |= (sta->ht_cap.mcs.rx_mask[NL80211_BAND_5GHZ] << 20) | in rtw_update_sta_info()
560 (sta->ht_cap.mcs.rx_mask[NL80211_BAND_2GHZ] << 12); in rtw_update_sta_info()
561 if (sta->ht_cap.cap & IEEE80211_HT_CAP_RX_STBC) in rtw_update_sta_info()
563 if (sta->ht_cap.cap & IEEE80211_HT_CAP_LDPC_CODING) in rtw_update_sta_info()
565 if (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20 || in rtw_update_sta_info()
566 sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) in rtw_update_sta_info()
575 } else if (sta->ht_cap.ht_supported) { in rtw_update_sta_info()
[all …]
Dtx.c66 u8 exp = sta->ht_cap.ampdu_factor; in get_tx_ampdu_factor()
77 return sta->ht_cap.ampdu_density; in get_tx_ampdu_density()
85 if (rtwdev->hal.rf_type == RF_2T2R && sta->ht_cap.mcs.rx_mask[1] != 0) in get_highest_ht_tx_rate()
265 else if (sta->ht_cap.ht_supported) in rtw_tx_data_pkt_info_update()
/Linux-v5.4/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()
/Linux-v5.4/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()
/Linux-v5.4/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
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/
Dmac80211.c115 struct ieee80211_sta_ht_cap *ht_cap = &sband->ht_cap; in mt76_init_stream_cap() local
121 ht_cap->cap |= IEEE80211_HT_CAP_TX_STBC; in mt76_init_stream_cap()
123 ht_cap->cap &= ~IEEE80211_HT_CAP_TX_STBC; in mt76_init_stream_cap()
126 ht_cap->mcs.rx_mask[i] = i < nstream ? 0xff : 0; in mt76_init_stream_cap()
163 struct ieee80211_sta_ht_cap *ht_cap; in mt76_init_sband() local
184 ht_cap = &sband->ht_cap; in mt76_init_sband()
185 ht_cap->ht_supported = true; in mt76_init_sband()
186 ht_cap->cap |= IEEE80211_HT_CAP_SUP_WIDTH_20_40 | in mt76_init_sband()
192 ht_cap->mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; in mt76_init_sband()
193 ht_cap->ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K; in mt76_init_sband()
[all …]
/Linux-v5.4/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()
/Linux-v5.4/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()
/Linux-v5.4/drivers/staging/rtl8723bs/core/
Drtw_ap.c588 phtpriv_sta->ht_cap.ampdu_params_info & IEEE80211_HT_CAP_AMPDU_DENSITY in update_sta_info_apmode()
593 phtpriv_sta->ht_cap.cap_info & phtpriv_ap->ht_cap.cap_info in update_sta_info_apmode()
606 phtpriv_sta->ht_cap.cap_info & phtpriv_ap->ht_cap.cap_info in update_sta_info_apmode()
612 phtpriv_sta->ht_cap.cap_info & phtpriv_ap->ht_cap.cap_info in update_sta_info_apmode()
624 GET_HT_CAPABILITY_ELE_LDPC_CAP((u8 *)(&phtpriv_sta->ht_cap))) { in update_sta_info_apmode()
631 GET_HT_CAPABILITY_ELE_RX_STBC((u8 *)(&phtpriv_sta->ht_cap))) { in update_sta_info_apmode()
689 if ((phtpriv_ap->ht_cap.cap_info) & cpu_to_le16(IEEE80211_HT_CAP_SGI_20)) in update_ap_info()
693 if ((phtpriv_ap->ht_cap.cap_info) & cpu_to_le16(IEEE80211_HT_CAP_SGI_40)) in update_ap_info()
948 u16 cap, ht_cap = false; in rtw_check_beacon_data() local
1186 ht_cap = true; in rtw_check_beacon_data()
[all …]
/Linux-v5.4/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()
/Linux-v5.4/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()
/Linux-v5.4/drivers/staging/rtl8712/
Drtl871x_ht.h29 struct ieee80211_ht_cap ht_cap; member
/Linux-v5.4/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 …]
/Linux-v5.4/drivers/staging/rtl8188eu/include/
Drtw_ht.h23 struct ieee80211_ht_cap ht_cap; member
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/dvm/
Drs.c1256 if (!conf_is_ht(conf) || !sta->ht_cap.ht_supported) in rs_switch_to_mimo2()
1311 if (!conf_is_ht(conf) || !sta->ht_cap.ht_supported) in rs_switch_to_mimo3()
1367 if (!conf_is_ht(conf) || !sta->ht_cap.ht_supported) in rs_switch_to_siso()
1587 struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in rs_move_siso_to_other() local
1681 if (!tbl->is_ht40 && !(ht_cap->cap & in rs_move_siso_to_other()
1684 if (tbl->is_ht40 && !(ht_cap->cap & in rs_move_siso_to_other()
1757 struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in rs_move_mimo2_to_other() local
1847 if (!tbl->is_ht40 && !(ht_cap->cap & in rs_move_mimo2_to_other()
1850 if (tbl->is_ht40 && !(ht_cap->cap & in rs_move_mimo2_to_other()
1925 struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in rs_move_mimo3_to_other() local
[all …]
/Linux-v5.4/net/wireless/
Dchan.c882 struct ieee80211_sta_ht_cap *ht_cap; in cfg80211_chandef_usable() local
890 ht_cap = &wiphy->bands[chandef->chan->band]->ht_cap; in cfg80211_chandef_usable()
913 if (!ht_cap->ht_supported) in cfg80211_chandef_usable()
922 if (!ht_cap->ht_supported) in cfg80211_chandef_usable()
924 if (!(ht_cap->cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) || in cfg80211_chandef_usable()
925 ht_cap->cap & IEEE80211_HT_CAP_40MHZ_INTOLERANT) in cfg80211_chandef_usable()

123456