Home
last modified time | relevance | path

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

/linux-4.1.27/net/mac80211/
Dht.c24 struct ieee80211_sta_ht_cap *ht_cap, in __check_htcap_disable() argument
30 ht_cap->cap &= ~flag; in __check_htcap_disable()
36 struct ieee80211_sta_ht_cap *ht_cap, in __check_htcap_enable() argument
43 ht_cap->cap |= flag; in __check_htcap_enable()
47 struct ieee80211_sta_ht_cap *ht_cap) in ieee80211_apply_htcap_overrides() argument
53 if (!ht_cap->ht_supported) in ieee80211_apply_htcap_overrides()
82 ht_cap->mcs.rx_mask[i] &= ~m; /* turn off all masked bits */ in ieee80211_apply_htcap_overrides()
84 ht_cap->mcs.rx_mask[i] |= (m & scaps[i]); in ieee80211_apply_htcap_overrides()
88 __check_htcap_disable(ht_capa, ht_capa_mask, ht_cap, in ieee80211_apply_htcap_overrides()
90 __check_htcap_disable(ht_capa, ht_capa_mask, ht_cap, in ieee80211_apply_htcap_overrides()
[all …]
Dvht.c126 if (!sta->sta.ht_cap.ht_supported) in ieee80211_vht_cap_ie_to_sta_vht_cap()
274 return sta->sta.ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? in ieee80211_sta_cap_rx_bw()
327 if (sta->sta.ht_cap.ht_supported) { in ieee80211_sta_set_rx_nss()
328 if (sta->sta.ht_cap.mcs.rx_mask[0]) in ieee80211_sta_set_rx_nss()
330 if (sta->sta.ht_cap.mcs.rx_mask[1]) in ieee80211_sta_set_rx_nss()
332 if (sta->sta.ht_cap.mcs.rx_mask[2]) in ieee80211_sta_set_rx_nss()
334 if (sta->sta.ht_cap.mcs.rx_mask[3]) in ieee80211_sta_set_rx_nss()
Dtdls.c302 struct ieee80211_sta_ht_cap ht_cap; in ieee80211_tdls_add_setup_start_ies() local
379 memcpy(&ht_cap, &sband->ht_cap, sizeof(ht_cap)); in ieee80211_tdls_add_setup_start_ies()
383 ht_cap.ht_supported) { in ieee80211_tdls_add_setup_start_ies()
384 ieee80211_apply_htcap_overrides(sdata, &ht_cap); in ieee80211_tdls_add_setup_start_ies()
387 ht_cap.cap |= WLAN_HT_CAP_SM_PS_DISABLED in ieee80211_tdls_add_setup_start_ies()
391 ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); in ieee80211_tdls_add_setup_start_ies()
393 ht_cap.ht_supported && sta->sta.ht_cap.ht_supported) { in ieee80211_tdls_add_setup_start_ies()
395 sta->sta.ht_cap.cap |= WLAN_HT_CAP_SM_PS_DISABLED in ieee80211_tdls_add_setup_start_ies()
399 memcpy(&ht_cap, &sta->sta.ht_cap, sizeof(ht_cap)); in ieee80211_tdls_add_setup_start_ies()
402 ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); in ieee80211_tdls_add_setup_start_ies()
[all …]
Dmlme.c153 const struct ieee80211_ht_cap *ht_cap, in ieee80211_determine_chantype() argument
163 memcpy(&sta_ht_cap, &sband->ht_cap, sizeof(sta_ht_cap)); in ieee80211_determine_chantype()
171 if (!ht_cap || !ht_oper || !sta_ht_cap.ht_supported) { in ieee80211_determine_chantype()
178 if (!(ht_cap->cap_info & in ieee80211_determine_chantype()
344 const struct ieee80211_ht_cap *ht_cap, in ieee80211_config_bw() argument
385 ht_cap, ht_oper, vht_oper, in ieee80211_config_bw()
481 struct ieee80211_sta_ht_cap ht_cap; in ieee80211_add_ht_ie() local
483 BUILD_BUG_ON(sizeof(ht_cap) != sizeof(sband->ht_cap)); in ieee80211_add_ht_ie()
485 memcpy(&ht_cap, &sband->ht_cap, sizeof(ht_cap)); in ieee80211_add_ht_ie()
486 ieee80211_apply_htcap_overrides(sdata, &ht_cap); in ieee80211_add_ht_ie()
[all …]
Dmesh.c422 if (!sband->ht_cap.ht_supported || in mesh_add_ht_cap_ie()
432 ieee80211_ie_build_ht_cap(pos, &sband->ht_cap, sband->ht_cap.cap); in mesh_add_ht_cap_ie()
446 struct ieee80211_sta_ht_cap *ht_cap; in mesh_add_ht_oper_ie() local
459 ht_cap = &sband->ht_cap; in mesh_add_ht_oper_ie()
461 if (!ht_cap->ht_supported || channel_type == NL80211_CHAN_NO_HT) in mesh_add_ht_oper_ie()
468 ieee80211_ie_build_ht_oper(pos, ht_cap, &sdata->vif.bss_conf.chandef, in mesh_add_ht_oper_ie()
Dsta_info.c377 u8 smps = (sband->ht_cap.cap & IEEE80211_HT_CAP_SM_PS) >> in sta_info_alloc()
1764 struct ieee80211_sta_ht_cap *ht_cap = &sta->sta.ht_cap; in sta_info_tx_streams() local
1767 if (!sta->sta.ht_cap.ht_supported) in sta_info_tx_streams()
1781 if (ht_cap->mcs.rx_mask[3]) in sta_info_tx_streams()
1783 else if (ht_cap->mcs.rx_mask[2]) in sta_info_tx_streams()
1785 else if (ht_cap->mcs.rx_mask[1]) in sta_info_tx_streams()
1790 if (!(ht_cap->mcs.tx_params & IEEE80211_HT_MCS_TX_RX_DIFF)) in sta_info_tx_streams()
1793 return ((ht_cap->mcs.tx_params & IEEE80211_HT_MCS_TX_MAX_STREAMS_MASK) in sta_info_tx_streams()
Dibss.c178 sband->ht_cap.ht_supported) { in ieee80211_ibss_build_presp()
179 struct ieee80211_sta_ht_cap ht_cap; in ieee80211_ibss_build_presp() local
181 memcpy(&ht_cap, &sband->ht_cap, sizeof(ht_cap)); in ieee80211_ibss_build_presp()
182 ieee80211_apply_htcap_overrides(sdata, &ht_cap); in ieee80211_ibss_build_presp()
184 pos = ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); in ieee80211_ibss_build_presp()
190 pos = ieee80211_ie_build_ht_oper(pos, &sband->ht_cap, in ieee80211_ibss_build_presp()
Dutil.c1454 if (sband->ht_cap.ht_supported) { in ieee80211_build_preq_ies_band()
1457 pos = ieee80211_ie_build_ht_cap(pos, &sband->ht_cap, in ieee80211_build_preq_ies_band()
1458 sband->ht_cap.cap); in ieee80211_build_preq_ies_band()
2250 u8 *ieee80211_ie_build_ht_cap(u8 *pos, struct ieee80211_sta_ht_cap *ht_cap, in ieee80211_ie_build_ht_cap() argument
2265 *pos++ = ht_cap->ampdu_factor | in ieee80211_ie_build_ht_cap()
2266 (ht_cap->ampdu_density << in ieee80211_ie_build_ht_cap()
2270 memcpy(pos, &ht_cap->mcs, sizeof(ht_cap->mcs)); in ieee80211_ie_build_ht_cap()
2271 pos += sizeof(ht_cap->mcs); in ieee80211_ie_build_ht_cap()
2306 u8 *ieee80211_ie_build_ht_oper(u8 *pos, struct ieee80211_sta_ht_cap *ht_cap, in ieee80211_ie_build_ht_oper() argument
2331 if (ht_cap->cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 && in ieee80211_ie_build_ht_oper()
[all …]
Dagg-rx.c241 if (!sta->sta.ht_cap.ht_supported) { in __ieee80211_start_rx_ba_session()
261 (!(sta->sta.ht_cap.cap & IEEE80211_HT_CAP_DELAY_BA))) || in __ieee80211_start_rx_ba_session()
Dmain.c887 supp_ht = supp_ht || sband->ht_cap.ht_supported; in ieee80211_register_hw()
890 if (sband->ht_cap.ht_supported) in ieee80211_register_hw()
892 max(ieee80211_mcs_to_chains(&sband->ht_cap.mcs), in ieee80211_register_hw()
Drc80211_minstrel_ht.c1098 struct ieee80211_mcs_info *mcs = &sta->ht_cap.mcs; in minstrel_ht_update_caps()
1099 u16 sta_cap = sta->ht_cap.cap; in minstrel_ht_update_caps()
1108 if (!sta->ht_cap.ht_supported) in minstrel_ht_update_caps()
Dagg-tx.c560 if (!pubsta->ht_cap.ht_supported) in ieee80211_start_tx_ba_session()
601 !sta->sta.ht_cap.ht_supported) { in ieee80211_start_tx_ba_session()
Dieee80211_i.h1653 struct ieee80211_sta_ht_cap *ht_cap);
1966 u8 *ieee80211_ie_build_ht_cap(u8 *pos, struct ieee80211_sta_ht_cap *ht_cap,
1968 u8 *ieee80211_ie_build_ht_oper(u8 *pos, struct ieee80211_sta_ht_cap *ht_cap,
Ddebugfs_sta.c261 struct ieee80211_sta_ht_cap *htc = &sta->sta.ht_cap; in sta_ht_capa_read()
Drate.c612 mcs_mask[i] &= sta->ht_cap.mcs.rx_mask[i]; in rate_control_apply_mask()
Dmesh_plink.c179 if (!sta->sta.ht_cap.ht_supported) { in mesh_set_ht_prot_mode()
Dchan.c197 if (sta->ht_cap.ht_supported) in ieee80211_get_sta_bw()
Drx.c2618 if (!rx->sta->sta.ht_cap.ht_supported) in ieee80211_rx_h_action()
2669 if (!(rx->sta->sta.ht_cap.cap & in ieee80211_rx_h_action()
Diface.c1767 sband->ht_cap.mcs.rx_mask, in ieee80211_if_add()
/linux-4.1.27/drivers/net/wireless/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, in mwifiex_set_ht_params()
172 cap_info = le16_to_cpu(bss_cfg->ht_cap.cap_info); in mwifiex_set_ht_params()
173 memset(&bss_cfg->ht_cap.mcs, 0, in mwifiex_set_ht_params()
178 bss_cfg->ht_cap.mcs.rx_mask[0] = 0xff; in mwifiex_set_ht_params()
183 bss_cfg->ht_cap.mcs.rx_mask[0] = 0xff; in mwifiex_set_ht_params()
184 bss_cfg->ht_cap.mcs.rx_mask[1] = 0xff; in mwifiex_set_ht_params()
189 bss_cfg->ht_cap.mcs.rx_mask[0] = 0xff; in mwifiex_set_ht_params()
190 bss_cfg->ht_cap.mcs.rx_mask[1] = 0xff; in mwifiex_set_ht_params()
195 memset(&bss_cfg->ht_cap , 0, sizeof(struct ieee80211_ht_cap)); in mwifiex_set_ht_params()
196 bss_cfg->ht_cap.cap_info = cpu_to_le16(MWIFIEX_DEF_HT_CAP); in mwifiex_set_ht_params()
[all …]
Djoin.c791 struct mwifiex_ie_types_htcap *ht_cap; in mwifiex_cmd_802_11_ad_hoc_start() local
976 ht_cap = (struct mwifiex_ie_types_htcap *) pos; in mwifiex_cmd_802_11_ad_hoc_start()
977 memset(ht_cap, 0, sizeof(struct mwifiex_ie_types_htcap)); in mwifiex_cmd_802_11_ad_hoc_start()
978 ht_cap->header.type = cpu_to_le16(WLAN_EID_HT_CAPABILITY); in mwifiex_cmd_802_11_ad_hoc_start()
979 ht_cap->header.len = in mwifiex_cmd_802_11_ad_hoc_start()
983 mwifiex_fill_cap_info(priv, radio_type, &ht_cap->ht_cap); in mwifiex_cmd_802_11_ad_hoc_start()
989 tmp_ht_cap = le16_to_cpu(ht_cap->ht_cap.cap_info); in mwifiex_cmd_802_11_ad_hoc_start()
992 ht_cap->ht_cap.cap_info = cpu_to_le16(tmp_ht_cap); in mwifiex_cmd_802_11_ad_hoc_start()
Dutil.c539 const struct ieee80211_ht_cap *ht_cap; in mwifiex_set_sta_ht_cap() local
544 ht_cap = (void *)cfg80211_find_ie(WLAN_EID_HT_CAPABILITY, ies, ies_len); in mwifiex_set_sta_ht_cap()
545 if (ht_cap) { in mwifiex_set_sta_ht_cap()
547 node->max_amsdu = le16_to_cpu(ht_cap->cap_info) & in mwifiex_set_sta_ht_cap()
Dtdls.c428 struct ieee80211_ht_cap *ht_cap; in mwifiex_prep_tdls_encap_data() local
455 ht_cap = (void *)pos; in mwifiex_prep_tdls_encap_data()
457 ret = mwifiex_fill_cap_info(priv, radio, ht_cap); in mwifiex_prep_tdls_encap_data()
493 ht_cap = (void *)pos; in mwifiex_prep_tdls_encap_data()
495 ret = mwifiex_fill_cap_info(priv, radio, ht_cap); in mwifiex_prep_tdls_encap_data()
682 struct ieee80211_ht_cap *ht_cap; in mwifiex_construct_tdls_action_frame() local
724 ht_cap = (void *)pos; in mwifiex_construct_tdls_action_frame()
726 ret = mwifiex_fill_cap_info(priv, radio, ht_cap); in mwifiex_construct_tdls_action_frame()
Dscan.c816 struct mwifiex_ie_types_htcap *ht_cap; in mwifiex_config_scan() local
981 ht_cap = (struct mwifiex_ie_types_htcap *) tlv_pos; in mwifiex_config_scan()
982 memset(ht_cap, 0, sizeof(struct mwifiex_ie_types_htcap)); in mwifiex_config_scan()
983 ht_cap->header.type = cpu_to_le16(WLAN_EID_HT_CAPABILITY); in mwifiex_config_scan()
984 ht_cap->header.len = in mwifiex_config_scan()
988 mwifiex_fill_cap_info(priv, radio_type, &ht_cap->ht_cap); in mwifiex_config_scan()
Dioctl.h110 struct ieee80211_ht_cap ht_cap; member
Dwmm.c864 struct ieee80211_ht_cap *ht_cap) in mwifiex_wmm_process_association_req() argument
883 (ht_cap && (priv->adapter->config_bands & BAND_GN || in mwifiex_wmm_process_association_req()
Dcfg80211.c1665 ht_info = &adapter->wiphy->bands[band]->ht_cap; in mwifiex_cfg80211_set_antenna()
2571 mwifiex_setup_ht_caps(&wiphy->bands[IEEE80211_BAND_2GHZ]->ht_cap, priv); in mwifiex_add_virtual_intf()
2578 &wiphy->bands[IEEE80211_BAND_5GHZ]->ht_cap, priv); in mwifiex_add_virtual_intf()
Dfw.h1531 struct ieee80211_ht_cap ht_cap; member
Dsta_cmd.c1610 memcpy(&ht_capab->ht_cap, params->ht_capa, in mwifiex_cmd_tdls_oper()
/linux-4.1.27/drivers/net/wireless/ti/wl18xx/
Dacx.c151 struct ieee80211_sta_ht_cap *ht_cap, in wl18xx_acx_set_peer_cap() argument
161 ht_cap->ht_supported, ht_cap->cap, rate_set); in wl18xx_acx_set_peer_cap()
169 if (allow_ht_operation && ht_cap->ht_supported) { in wl18xx_acx_set_peer_cap()
171 ht_capabilites = ht_cap->cap; in wl18xx_acx_set_peer_cap()
180 acx->ampdu_max_length = ht_cap->ampdu_factor; in wl18xx_acx_set_peer_cap()
181 acx->ampdu_min_spacing = ht_cap->ampdu_density; in wl18xx_acx_set_peer_cap()
Dacx.h377 struct ieee80211_sta_ht_cap *ht_cap,
Dmain.c1596 struct ieee80211_sta_ht_cap *ht_cap, in wl18xx_set_peer_cap() argument
1600 return wl18xx_acx_set_peer_cap(wl, ht_cap, allow_ht_operation, in wl18xx_set_peer_cap()
/linux-4.1.27/drivers/net/wireless/rtlwifi/
Dbase.c142 .ht_cap = {0},
154 .ht_cap = {0},
175 struct ieee80211_sta_ht_cap *ht_cap) in _rtl_init_hw_ht_capab() argument
180 ht_cap->ht_supported = true; in _rtl_init_hw_ht_capab()
181 ht_cap->cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 | in _rtl_init_hw_ht_capab()
187 ht_cap->cap &= ~IEEE80211_HT_CAP_MAX_AMSDU; in _rtl_init_hw_ht_capab()
193 ht_cap->ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K; in _rtl_init_hw_ht_capab()
196 ht_cap->ampdu_density = IEEE80211_HT_MPDU_DENSITY_16; in _rtl_init_hw_ht_capab()
198 ht_cap->mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; in _rtl_init_hw_ht_capab()
213 ht_cap->mcs.rx_mask[0] = 0xFF; in _rtl_init_hw_ht_capab()
[all …]
Drc.c106 sgi_20 = sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20; in _rtl_rc_rate_set_series()
107 sgi_40 = sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40; in _rtl_rc_rate_set_series()
123 if (sta && (sta->ht_cap.cap & in _rtl_rc_rate_set_series()
137 if (sta && sta->ht_cap.ht_supported && in _rtl_rc_rate_set_series()
215 if ((sta->ht_cap.ht_supported) && in rtl_tx_status()
Drc.h42 u8 ht_cap; member
Dcore.c915 if (sta->ht_cap.ht_supported) in rtl_op_sta_add()
922 if (sta->ht_cap.ht_supported) in rtl_op_sta_add()
1114 if (sta->ht_cap.ht_supported) in rtl_op_bss_info_changed()
1128 if (sta->ht_cap.ht_supported) { in rtl_op_bss_info_changed()
1227 if (sta->ht_cap.ampdu_density > in rtl_op_bss_info_changed()
1230 sta->ht_cap.ampdu_density; in rtl_op_bss_info_changed()
1231 if (sta->ht_cap.ampdu_factor < in rtl_op_bss_info_changed()
1234 sta->ht_cap.ampdu_factor; in rtl_op_bss_info_changed()
1275 if (sta->ht_cap.ht_supported) { in rtl_op_bss_info_changed()
1297 if (sta->ht_cap.ht_supported) { in rtl_op_bss_info_changed()
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
Dwlcore.h111 struct ieee80211_sta_ht_cap *ht_cap,
465 struct ieee80211_sta_ht_cap ht_cap[WLCORE_NUM_BANDS]; member
520 struct ieee80211_sta_ht_cap *ht_cap) in wlcore_set_ht_cap() argument
522 memcpy(&wl->ht_cap[band], ht_cap, sizeof(*ht_cap)); in wlcore_set_ht_cap()
Dhw_ops.h247 struct ieee80211_sta_ht_cap *ht_cap, in wlcore_hw_set_peer_cap() argument
252 return wl->ops->set_peer_cap(wl, ht_cap, allow_ht_operation, in wlcore_hw_set_peer_cap()
Dacx.c1301 struct ieee80211_sta_ht_cap *ht_cap, in wl1271_acx_set_ht_capabilities() argument
1309 "sta supp: %d sta cap: %d", ht_cap->ht_supported, in wl1271_acx_set_ht_capabilities()
1310 ht_cap->cap); in wl1271_acx_set_ht_capabilities()
1318 if (allow_ht_operation && ht_cap->ht_supported) { in wl1271_acx_set_ht_capabilities()
1320 ht_capabilites = ht_cap->cap; in wl1271_acx_set_ht_capabilities()
1329 acx->ampdu_max_length = ht_cap->ampdu_factor; in wl1271_acx_set_ht_capabilities()
1330 acx->ampdu_min_spacing = ht_cap->ampdu_density; in wl1271_acx_set_ht_capabilities()
Dmain.c4371 u8 *rx_mask = sta->ht_cap.mcs.rx_mask; in wl1271_bss_info_changed_sta()
4375 if (sta->ht_cap.ht_supported) in wl1271_bss_info_changed_sta()
4379 sta_ht_cap = sta->ht_cap; in wl1271_bss_info_changed_sta()
5128 ret = wl1271_acx_set_ht_capabilities(wl, &sta->ht_cap, true, in wl12xx_update_sta_state()
6135 memcpy(&wl->bands[IEEE80211_BAND_2GHZ].ht_cap, in wl1271_init_ieee80211()
6136 &wl->ht_cap[IEEE80211_BAND_2GHZ], in wl1271_init_ieee80211()
6137 sizeof(*wl->ht_cap)); in wl1271_init_ieee80211()
6140 memcpy(&wl->bands[IEEE80211_BAND_5GHZ].ht_cap, in wl1271_init_ieee80211()
6141 &wl->ht_cap[IEEE80211_BAND_5GHZ], in wl1271_init_ieee80211()
6142 sizeof(*wl->ht_cap)); in wl1271_init_ieee80211()
Dcmd.c1560 if (sta->ht_cap.ht_supported) in wl12xx_cmd_add_peer()
1562 (sta->ht_cap.mcs.rx_mask[0] << HW_HT_RATES_OFFSET) | in wl12xx_cmd_add_peer()
1563 (sta->ht_cap.mcs.rx_mask[1] << HW_MIMO_RATES_OFFSET); in wl12xx_cmd_add_peer()
Dacx.h1107 struct ieee80211_sta_ht_cap *ht_cap,
/linux-4.1.27/drivers/net/wireless/rsi/
Drsi_91x_mac80211.c175 memset(&sbands->ht_cap, 0, sizeof(struct ieee80211_sta_ht_cap)); in rsi_register_rates_channels()
176 sbands->ht_cap.ht_supported = true; in rsi_register_rates_channels()
177 sbands->ht_cap.cap = (IEEE80211_HT_CAP_SUP_WIDTH_20_40 | in rsi_register_rates_channels()
180 sbands->ht_cap.ampdu_factor = IEEE80211_HT_MAX_AMPDU_16K; in rsi_register_rates_channels()
181 sbands->ht_cap.ampdu_density = IEEE80211_HT_MPDU_DENSITY_NONE; in rsi_register_rates_channels()
182 sbands->ht_cap.mcs.rx_mask[0] = 0xff; in rsi_register_rates_channels()
183 sbands->ht_cap.mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; in rsi_register_rates_channels()
938 common->vif_info[0].is_ht = sta->ht_cap.ht_supported; in rsi_set_min_rate()
974 if ((sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) || in rsi_mac80211_sta_add()
975 (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40)) { in rsi_mac80211_sta_add()
[all …]
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Dmac.c1476 const struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in ath10k_peer_assoc_h_ht() local
1482 if (!ht_cap->ht_supported) in ath10k_peer_assoc_h_ht()
1487 ht_cap->ampdu_factor)) - 1; in ath10k_peer_assoc_h_ht()
1490 ath10k_parse_mpdudensity(ht_cap->ampdu_density); in ath10k_peer_assoc_h_ht()
1492 arg->peer_ht_caps = ht_cap->cap; in ath10k_peer_assoc_h_ht()
1495 if (ht_cap->cap & IEEE80211_HT_CAP_LDPC_CODING) in ath10k_peer_assoc_h_ht()
1503 if (ht_cap->cap & IEEE80211_HT_CAP_SGI_20) in ath10k_peer_assoc_h_ht()
1506 if (ht_cap->cap & IEEE80211_HT_CAP_SGI_40) in ath10k_peer_assoc_h_ht()
1509 if (ht_cap->cap & IEEE80211_HT_CAP_TX_STBC) { in ath10k_peer_assoc_h_ht()
1514 if (ht_cap->cap & IEEE80211_HT_CAP_RX_STBC) { in ath10k_peer_assoc_h_ht()
[all …]
Dwmi.c3050 arg->ht_cap = ev->ht_cap_info; in ath10k_wmi_main_op_pull_svc_rdy_ev()
3087 arg->ht_cap = ev->ht_cap_info; in ath10k_wmi_10x_op_pull_svc_rdy_ev()
3127 ar->ht_cap_info = __le32_to_cpu(arg.ht_cap); in ath10k_wmi_event_service_ready()
3205 __le32_to_cpu(arg.ht_cap), in ath10k_wmi_event_service_ready()
Dwmi.h4839 __le32 ht_cap; member
Dwmi-tlv.c818 arg->ht_cap = ev->ht_cap_info; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
/linux-4.1.27/net/wireless/
Dchan.c604 struct ieee80211_sta_ht_cap *ht_cap; in cfg80211_chandef_usable() local
611 ht_cap = &wiphy->bands[chandef->chan->band]->ht_cap; in cfg80211_chandef_usable()
625 if (!ht_cap->ht_supported) in cfg80211_chandef_usable()
633 if (!ht_cap->ht_supported) in cfg80211_chandef_usable()
635 if (!(ht_cap->cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) || in cfg80211_chandef_usable()
636 ht_cap->cap & IEEE80211_HT_CAP_40MHZ_INTOLERANT) in cfg80211_chandef_usable()
Dcore.c649 sband->ht_cap.ht_supported) { in wiphy_register()
650 sband->ht_cap.cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; in wiphy_register()
651 sband->ht_cap.cap &= ~IEEE80211_HT_CAP_SGI_40; in wiphy_register()
Dutil.c190 WARN_ON(!sband->ht_cap.ht_supported); in set_mandatory_flags_band()
191 WARN_ON((sband->ht_cap.mcs.rx_mask[0] & 0x1e) != 0x1e); in set_mandatory_flags_band()
Dwext-compat.c38 is_ht |= sband->ht_cap.ht_supported; in cfg80211_wext_giwname()
51 is_ht |= sband->ht_cap.ht_supported; in cfg80211_wext_giwname()
Dnl80211.c1137 if (sband->ht_cap.ht_supported && in nl80211_send_band_rateinfo()
1139 sizeof(sband->ht_cap.mcs), in nl80211_send_band_rateinfo()
1140 &sband->ht_cap.mcs) || in nl80211_send_band_rateinfo()
1142 sband->ht_cap.cap) || in nl80211_send_band_rateinfo()
1144 sband->ht_cap.ampdu_factor) || in nl80211_send_band_rateinfo()
1146 sband->ht_cap.ampdu_density))) in nl80211_send_band_rateinfo()
8085 if (sband->ht_cap.mcs.rx_mask[ridx] & rbit) in ht_rateset_to_mask()
8188 sband->ht_cap.mcs.rx_mask, in nl80211_set_tx_bitrate_mask()
8255 if (!(rdev->wiphy.bands[band]->ht_cap.ht_supported || in nl80211_set_tx_bitrate_mask()
/linux-4.1.27/drivers/net/wireless/cw1200/
Dcw1200.h57 struct ieee80211_sta_ht_cap ht_cap; member
311 (ht_info->ht_cap.cap & IEEE80211_HT_CAP_GRN_FLD) && in cw1200_ht_greenfield()
320 return ht_info->ht_cap.ampdu_density; in cw1200_ht_ampdu_density()
Dmain.c166 .ht_cap = {
186 .ht_cap = {
Dsta.c1923 priv->ht_info.ht_cap = sta->ht_cap; in cw1200_bss_info_changed()
/linux-4.1.27/drivers/staging/rtl8712/
Drtl871x_ht.h40 struct ieee80211_ht_cap ht_cap; member
Drtl871x_ioctl_linux.c175 u16 cap, ht_cap = false, mcs_rate; in translate_scan() local
200 ht_cap = true; in translate_scan()
208 if (ht_cap == true) in translate_scan()
214 if (ht_cap == true) in translate_scan()
219 if (ht_cap == true) in translate_scan()
635 u8 ht_cap = false; in r8711_wx_get_name() local
646 ht_cap = true; in r8711_wx_get_name()
649 if (ht_cap == true) in r8711_wx_get_name()
656 if (ht_cap == true) in r8711_wx_get_name()
663 if (ht_cap == true) in r8711_wx_get_name()
[all …]
/linux-4.1.27/drivers/staging/rtl8723au/core/
Drtw_ap.c377 if (psta_ht->ht_cap.mcs.rx_mask[i / 8] & BIT(i % 8)) in add_RATid23a()
556 …if ((phtpriv_sta->ht_cap.cap_info & phtpriv_ap->ht_cap.cap_info) & cpu_to_le16(IEEE80211_HT_CAP_SG… in update_sta_info23a_apmode23a()
560 …if ((phtpriv_sta->ht_cap.cap_info & phtpriv_ap->ht_cap.cap_info) & cpu_to_le16(IEEE80211_HT_CAP_SU… in update_sta_info23a_apmode23a()
608 max_AMPDU_len = pmlmeinfo->ht_cap.ampdu_params_info & in update_hw_ht_param()
611 min_MPDU_spacing = (pmlmeinfo->ht_cap.ampdu_params_info & in update_hw_ht_param()
618 pmlmeinfo->SM_PS = (le16_to_cpu(pmlmeinfo->ht_cap.cap_info) & in update_hw_ht_param()
778 u16 ht_cap = false; in rtw_check_beacon_data23a() local
962 ht_cap = true; in rtw_check_beacon_data23a()
981 memcpy(&pmlmepriv->htpriv.ht_cap, p+2, ie_len); in rtw_check_beacon_data23a()
995 if (pregistrypriv->ht_enable && ht_cap) { in rtw_check_beacon_data23a()
[all …]
Drtw_wlan_util.c712 cap = &pmlmeinfo->ht_cap; in HT_caps_handler23a()
797 max_AMPDU_len = pmlmeinfo->ht_cap.ampdu_params_info & in HTOnAssocRsp23a()
801 (pmlmeinfo->ht_cap.ampdu_params_info & in HTOnAssocRsp23a()
Drtw_mlme.c2225 pmlmeinfo->ht_cap.cap_info & in rtw_update_ht_cap23a()
2236 pmlmeinfo->ht_cap.mcs.rx_mask[i] &= in rtw_update_ht_cap23a()
2239 pmlmeinfo->ht_cap.mcs.rx_mask[i] &= in rtw_update_ht_cap23a()
2265 (le16_to_cpu(pmlmeinfo->ht_cap.cap_info) & in rtw_update_ht_cap23a()
Drtw_mlme_ext.c1625 memset(&pstat->htpriv.ht_cap, 0, sizeof(struct ieee80211_ht_cap)); in OnAssocReq23a()
1633 memcpy(&pstat->htpriv.ht_cap, p + 2, in OnAssocReq23a()
3231 struct ieee80211_ht_cap *cap = &pmlmeinfo->ht_cap; in issue_assocreq()
3291 p[1], (u8 *)&pmlmeinfo->ht_cap, in issue_assocreq()
4990 if (support_short_GI23a(padapter, &pmlmeinfo->ht_cap)) in update_sta_info23a()
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
Dieee80211_wx.c150 PHT_CAPABILITY_ELE ht_cap = NULL; in rtl819x_translate_scan() local
154 ht_cap = (PHT_CAPABILITY_ELE)&network->bssht.bdHTCapBuf[4]; in rtl819x_translate_scan()
156 ht_cap = (PHT_CAPABILITY_ELE)&network->bssht.bdHTCapBuf[0]; in rtl819x_translate_scan()
157 is40M = (ht_cap->ChlWidth)?1:0; in rtl819x_translate_scan()
158 isShortGI = (ht_cap->ChlWidth)? in rtl819x_translate_scan()
159 ((ht_cap->ShortGI40Mhz)?1:0): in rtl819x_translate_scan()
160 ((ht_cap->ShortGI20Mhz)?1:0); in rtl819x_translate_scan()
162 max_mcs = HTGetHighestMCSRate(ieee, ht_cap->MCS, MCS_FILTER_ALL); in rtl819x_translate_scan()
/linux-4.1.27/drivers/staging/rtl8723au/include/
Drtw_ht.h39 struct ieee80211_ht_cap ht_cap; member
Drtw_mlme_ext.h357 struct ieee80211_ht_cap ht_cap; member
522 unsigned int update_MSC_rate23a(struct ieee80211_ht_cap *ht_cap);
531 struct ieee80211_ht_cap *ht_cap);
/linux-4.1.27/drivers/staging/rtl8188eu/include/
Drtw_ht.h41 struct rtw_ieee80211_ht_cap ht_cap; member
Dieee80211.h247 struct rtw_ieee80211_ht_cap ht_cap; member
272 struct rtw_ieee80211_ht_cap ht_cap; member
/linux-4.1.27/drivers/net/wireless/iwlegacy/
D4965-rs.c645 return (sta->ht_cap.cap & IEEE80211_HT_CAP_GRN_FLD) && in il4965_rs_use_green()
1182 if (!conf_is_ht(conf) || !sta->ht_cap.ht_supported) in il4965_rs_switch_to_mimo2()
1200 if (il_is_ht40_tx_allowed(il, &sta->ht_cap)) in il4965_rs_switch_to_mimo2()
1235 if (!conf_is_ht(conf) || !sta->ht_cap.ht_supported) in il4965_rs_switch_to_siso()
1246 if (il_is_ht40_tx_allowed(il, &sta->ht_cap)) in il4965_rs_switch_to_siso()
1402 struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in il4965_rs_move_siso_to_other() local
1463 !(ht_cap->cap & IEEE80211_HT_CAP_SGI_20)) in il4965_rs_move_siso_to_other()
1466 !(ht_cap->cap & IEEE80211_HT_CAP_SGI_40)) in il4965_rs_move_siso_to_other()
1525 struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in il4965_rs_move_mimo2_to_other() local
1586 !(ht_cap->cap & IEEE80211_HT_CAP_SGI_20)) in il4965_rs_move_mimo2_to_other()
[all …]
Dcommon.c1885 struct ieee80211_sta_ht_cap *sta_ht_inf = &sta->ht_cap; in il_set_ht_add_station()
1922 if (il_is_ht40_tx_allowed(il, &sta->ht_cap)) in il_set_ht_add_station()
3471 il_init_ht_hw_capab(il, &sband->ht_cap, IEEE80211_BAND_5GHZ); in il_init_geos()
3480 il_init_ht_hw_capab(il, &sband->ht_cap, IEEE80211_BAND_2GHZ); in il_init_geos()
3582 il_is_ht40_tx_allowed(struct il_priv *il, struct ieee80211_sta_ht_cap *ht_cap) in il_is_ht40_tx_allowed() argument
3591 if (ht_cap && !ht_cap->ht_supported) in il_is_ht40_tx_allowed()
5241 struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in il_ht_conf() local
5245 (ht_cap->mcs. in il_ht_conf()
5250 if (ht_cap->mcs.rx_mask[1] == 0 && in il_ht_conf()
5251 ht_cap->mcs.rx_mask[2] == 0) in il_ht_conf()
Dcommon.h1715 struct ieee80211_sta_ht_cap *ht_cap);
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
Drs.c1271 if (!conf_is_ht(conf) || !sta->ht_cap.ht_supported) in rs_switch_to_mimo2()
1326 if (!conf_is_ht(conf) || !sta->ht_cap.ht_supported) in rs_switch_to_mimo3()
1382 if (!conf_is_ht(conf) || !sta->ht_cap.ht_supported) in rs_switch_to_siso()
1604 struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in rs_move_siso_to_other() local
1698 if (!tbl->is_ht40 && !(ht_cap->cap & in rs_move_siso_to_other()
1701 if (tbl->is_ht40 && !(ht_cap->cap & in rs_move_siso_to_other()
1776 struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in rs_move_mimo2_to_other() local
1866 if (!tbl->is_ht40 && !(ht_cap->cap & in rs_move_mimo2_to_other()
1869 if (tbl->is_ht40 && !(ht_cap->cap & in rs_move_mimo2_to_other()
1946 struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in rs_move_mimo3_to_other() local
[all …]
Drxon.c1286 struct ieee80211_sta_ht_cap *ht_cap; in iwlagn_check_needed_chains() local
1307 ht_cap = &sta->ht_cap; in iwlagn_check_needed_chains()
1315 if (ht_cap->mcs.rx_mask[1] == 0 && in iwlagn_check_needed_chains()
1316 ht_cap->mcs.rx_mask[2] == 0) { in iwlagn_check_needed_chains()
1318 } else if (!(ht_cap->mcs.tx_params & in iwlagn_check_needed_chains()
1322 } else if (ht_cap->mcs.tx_params & in iwlagn_check_needed_chains()
1333 maxstreams = (ht_cap->mcs.tx_params & in iwlagn_check_needed_chains()
Dsta.c198 struct ieee80211_sta_ht_cap *sta_ht_inf = &sta->ht_cap; in iwl_sta_calc_ht_flags()
/linux-4.1.27/drivers/staging/rtl8192e/
Drtllib_wx.c156 struct ht_capab_ele *ht_cap = NULL; in rtl819x_translate_scan() local
161 ht_cap = (struct ht_capab_ele *) in rtl819x_translate_scan()
164 ht_cap = (struct ht_capab_ele *) in rtl819x_translate_scan()
166 is40M = (ht_cap->ChlWidth) ? 1 : 0; in rtl819x_translate_scan()
167 isShortGI = (ht_cap->ChlWidth) ? in rtl819x_translate_scan()
168 ((ht_cap->ShortGI40Mhz) ? 1 : 0) : in rtl819x_translate_scan()
169 ((ht_cap->ShortGI20Mhz) ? 1 : 0); in rtl819x_translate_scan()
171 max_mcs = HTGetHighestMCSRate(ieee, ht_cap->MCS, in rtl819x_translate_scan()
/linux-4.1.27/drivers/net/wireless/
Dmwl8k.c1973 if (priv->ap_fw && sta && sta->ht_cap.ht_supported && !eapol_frame && in mwl8k_txq_xmit()
2376 band->ht_cap.ht_supported = 1; in mwl8k_set_ht_caps()
2379 band->ht_cap.cap |= IEEE80211_HT_CAP_MAX_AMSDU; in mwl8k_set_ht_caps()
2381 band->ht_cap.cap |= IEEE80211_HT_CAP_GRN_FLD; in mwl8k_set_ht_caps()
2384 band->ht_cap.ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K; in mwl8k_set_ht_caps()
2385 band->ht_cap.ampdu_density = IEEE80211_HT_MPDU_DENSITY_NONE; in mwl8k_set_ht_caps()
2388 band->ht_cap.cap |= IEEE80211_HT_CAP_RX_STBC; in mwl8k_set_ht_caps()
2390 band->ht_cap.cap |= IEEE80211_HT_CAP_TX_STBC; in mwl8k_set_ht_caps()
2392 band->ht_cap.cap |= IEEE80211_HT_CAP_SGI_40; in mwl8k_set_ht_caps()
2394 band->ht_cap.cap |= IEEE80211_HT_CAP_SGI_20; in mwl8k_set_ht_caps()
[all …]
Dmac80211_hwsim.c2446 sband->ht_cap.ht_supported = true; in mac80211_hwsim_new_radio()
2447 sband->ht_cap.cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 | in mac80211_hwsim_new_radio()
2452 sband->ht_cap.ampdu_factor = 0x3; in mac80211_hwsim_new_radio()
2453 sband->ht_cap.ampdu_density = 0x6; in mac80211_hwsim_new_radio()
2454 memset(&sband->ht_cap.mcs, 0, in mac80211_hwsim_new_radio()
2455 sizeof(sband->ht_cap.mcs)); in mac80211_hwsim_new_radio()
2456 sband->ht_cap.mcs.rx_mask[0] = 0xff; in mac80211_hwsim_new_radio()
2457 sband->ht_cap.mcs.rx_mask[1] = 0xff; in mac80211_hwsim_new_radio()
2458 sband->ht_cap.mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; in mac80211_hwsim_new_radio()
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
Dcommon-init.c239 &common->sbands[IEEE80211_BAND_2GHZ].ht_cap); in ath9k_cmn_reload_chainmask()
242 &common->sbands[IEEE80211_BAND_5GHZ].ht_cap); in ath9k_cmn_reload_chainmask()
Ddebug_sta.c40 if (!an->sta->ht_cap.ht_supported) { in read_file_node_aggr()
203 if (!sta->ht_cap.ht_supported) in read_file_node_recv()
Dhtc_drv_main.c497 sta->ht_cap.ampdu_factor); in ath9k_htc_add_station()
616 if (sta->ht_cap.ht_supported) { in ath9k_htc_setup_rate()
618 if (sta->ht_cap.mcs.rx_mask[i/8] & (1<<(i%8))) in ath9k_htc_setup_rate()
626 if (sta->ht_cap.cap & IEEE80211_HT_CAP_RX_STBC) in ath9k_htc_setup_rate()
628 if (sta->ht_cap.mcs.rx_mask[1]) in ath9k_htc_setup_rate()
630 if ((sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) && in ath9k_htc_setup_rate()
634 (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40)) in ath9k_htc_setup_rate()
637 (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20)) in ath9k_htc_setup_rate()
Dxmit.c1502 if (sta->ht_cap.ht_supported) { in ath_tx_aggr_start()
1504 sta->ht_cap.ampdu_factor)) - 1; in ath_tx_aggr_start()
1505 density = ath9k_parse_mpdudensity(sta->ht_cap.ampdu_density); in ath_tx_aggr_start()
1613 tid->baw_size = IEEE80211_MIN_AMPDU_BUF << sta->ht_cap.ampdu_factor; in ath_tx_aggr_resume()
/linux-4.1.27/drivers/staging/rtl8723au/os_dep/
Dioctl_cfg80211.c1030 short_GI_20 = (pmlmeinfo->ht_cap.cap_info & in rtw_get_cur_max_rate()
1032 short_GI_40 = (pmlmeinfo->ht_cap.cap_info & in rtw_get_cur_max_rate()
1039 &pmlmeinfo->ht_cap.mcs); in rtw_get_cur_max_rate()
3123 static void rtw_cfg80211_init_ht_capab(struct ieee80211_sta_ht_cap *ht_cap, in rtw_cfg80211_init_ht_capab() argument
3130 ht_cap->ht_supported = true; in rtw_cfg80211_init_ht_capab()
3132 ht_cap->cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 | in rtw_cfg80211_init_ht_capab()
3140 ht_cap->ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K; in rtw_cfg80211_init_ht_capab()
3143 ht_cap->ampdu_density = IEEE80211_HT_MPDU_DENSITY_16; in rtw_cfg80211_init_ht_capab()
3145 ht_cap->mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; in rtw_cfg80211_init_ht_capab()
3158 ht_cap->mcs.rx_mask[0] = 0xFF; in rtw_cfg80211_init_ht_capab()
[all …]
/linux-4.1.27/drivers/net/wireless/ath/wcn36xx/
Dmain.c126 .ht_cap = {
147 .ht_cap = {
550 if (sta->ht_cap.ht_supported) { in wcn36xx_update_allowed_rates()
551 BUILD_BUG_ON(sizeof(sta->ht_cap.mcs.rx_mask) > in wcn36xx_update_allowed_rates()
554 sta->ht_cap.mcs.rx_mask, in wcn36xx_update_allowed_rates()
555 sizeof(sta->ht_cap.mcs.rx_mask)); in wcn36xx_update_allowed_rates()
Dsmd.c109 else if (sta && sta->ht_cap.ht_supported) in wcn36xx_smd_set_bss_nw_type()
125 if (sta && sta->ht_cap.ht_supported) { in wcn36xx_smd_set_bss_ht_params()
126 unsigned long caps = sta->ht_cap.cap; in wcn36xx_smd_set_bss_ht_params()
127 bss_params->ht = sta->ht_cap.ht_supported; in wcn36xx_smd_set_bss_ht_params()
148 if (sta->ht_cap.ht_supported) { in wcn36xx_smd_set_sta_ht_params()
149 unsigned long caps = sta->ht_cap.cap; in wcn36xx_smd_set_sta_ht_params()
150 sta_params->ht_capable = sta->ht_cap.ht_supported; in wcn36xx_smd_set_sta_ht_params()
156 sta_params->max_ampdu_size = sta->ht_cap.ampdu_factor; in wcn36xx_smd_set_sta_ht_params()
157 sta_params->max_ampdu_density = sta->ht_cap.ampdu_density; in wcn36xx_smd_set_sta_ht_params()
/linux-4.1.27/drivers/staging/rtl8188eu/core/
Drtw_ap.c469 if (psta_ht->ht_cap.supp_mcs_set[i/8] & BIT(i%8)) in add_RATid()
646 …if ((phtpriv_sta->ht_cap.cap_info & phtpriv_ap->ht_cap.cap_info) & (IEEE80211_HT_CAP_SGI_20 | IEEE… in update_sta_info_apmode()
650 if ((phtpriv_sta->ht_cap.cap_info & phtpriv_ap->ht_cap.cap_info) & IEEE80211_HT_CAP_SUP_WIDTH) { in update_sta_info_apmode()
844 u16 cap, ht_cap = false; in rtw_check_beacon_data() local
1023 ht_cap = true; in rtw_check_beacon_data()
1041 memcpy(&pmlmepriv->htpriv.ht_cap, p+2, ie_len); in rtw_check_beacon_data()
1078 if (pregistrypriv->ht_enable && ht_cap) { in rtw_check_beacon_data()
1462 else if ((phtpriv_ap->ht_cap.cap_info & IEEE80211_HT_CAP_SUP_WIDTH) && in rtw_ht_operation_update()
1592 u16 ht_capab = psta->htpriv.ht_cap.cap_info; in bss_cap_update_on_sta_join()
Drtw_mlme_ext.c1204 memset(&pstat->htpriv.ht_cap, 0, sizeof(struct rtw_ieee80211_ht_cap)); in OnAssocReq()
1210 memcpy(&pstat->htpriv.ht_cap, elems.ht_capabilities, sizeof(struct rtw_ieee80211_ht_cap)); in OnAssocReq()
/linux-4.1.27/drivers/net/wireless/ath/carl9170/
Dmain.c173 .ht_cap = CARL9170_HT_CAP,
181 .ht_cap = CARL9170_HT_CAP,
1325 if (sta->ht_cap.ht_supported) { in carl9170_op_sta_add()
1326 if (sta->ht_cap.ampdu_density > 6) { in carl9170_op_sta_add()
1338 sta_info->ampdu_max_len = 1 << (3 + sta->ht_cap.ampdu_factor); in carl9170_op_sta_add()
1354 if (sta->ht_cap.ht_supported) { in carl9170_op_sta_remove()
1938 carl9170_band_2GHz.ht_cap.mcs.tx_params |= tx_params; in carl9170_parse_eeprom()
1939 carl9170_band_5GHz.ht_cap.mcs.tx_params |= tx_params; in carl9170_parse_eeprom()
2009 carl9170_band_2GHz.ht_cap.ht_supported = false; in carl9170_register()
2010 carl9170_band_5GHz.ht_cap.ht_supported = false; in carl9170_register()
Dtx.c1043 factor = min_t(unsigned int, 1u, sta->ht_cap.ampdu_factor); in carl9170_tx_prepare()
1044 density = sta->ht_cap.ampdu_density; in carl9170_tx_prepare()
/linux-4.1.27/drivers/staging/rtl8188eu/os_dep/
Dioctl_linux.c115 u16 max_rate = 0, rate, ht_cap = false; in translate_scan() local
139 ht_cap = true; in translate_scan()
149 if (ht_cap) in translate_scan()
154 if (ht_cap) in translate_scan()
160 if (ht_cap) in translate_scan()
165 if (ht_cap) in translate_scan()
221 if (ht_cap) { in translate_scan()
636 u8 ht_cap = false; in rtw_wx_get_name() local
647 ht_cap = true; in rtw_wx_get_name()
652 if (ht_cap) in rtw_wx_get_name()
[all …]
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Drs.c166 if (!sta->ht_cap.ht_supported) in rs_mimo_allow()
193 if (!sta->ht_cap.ht_supported) in rs_siso_allow()
204 struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in rs_sgi_allow() local
207 if (is_ht20(rate) && (ht_cap->cap & in rs_sgi_allow()
210 if (is_ht40(rate) && (ht_cap->cap & in rs_sgi_allow()
2684 struct ieee80211_sta_ht_cap *ht_cap) in rs_ht_init() argument
2690 lq_sta->active_siso_rate = ht_cap->mcs.rx_mask[0] << 1; in rs_ht_init()
2691 lq_sta->active_siso_rate |= ht_cap->mcs.rx_mask[0] & 0x1; in rs_ht_init()
2695 lq_sta->active_mimo2_rate = ht_cap->mcs.rx_mask[1] << 1; in rs_ht_init()
2696 lq_sta->active_mimo2_rate |= ht_cap->mcs.rx_mask[1] & 0x1; in rs_ht_init()
[all …]
Dsf.c168 if (sta->ht_cap.ht_supported || sta->vht_cap.vht_supported) { in iwl_mvm_fill_sf_command()
Dsta.c130 if (sta->ht_cap.ht_supported) in iwl_mvm_sta_send_to_fw()
166 if (sta->ht_cap.ht_supported) { in iwl_mvm_sta_send_to_fw()
171 mpdu_dens = sta->ht_cap.ampdu_density; in iwl_mvm_sta_send_to_fw()
179 } else if (sta->ht_cap.ht_supported) { in iwl_mvm_sta_send_to_fw()
180 agg_size = sta->ht_cap.ampdu_factor; in iwl_mvm_sta_send_to_fw()
Dops.c1078 cmd->is_11n_connection = ap_sta->ht_cap.ht_supported; in iwl_mvm_set_wowlan_data()
Dd3.c804 ap_sta->ht_cap.ht_supported; in iwl_mvm_get_wowlan_config()
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
Dcfg80211.c130 .ht_cap.cap = ath6kl_g_htcap,
131 .ht_cap.ht_supported = true,
139 .ht_cap.cap = ath6kl_a_htcap,
140 .ht_cap.ht_supported = true,
2617 wiphy->bands[band]->ht_cap.ht_supported); in ath6kl_restore_htcap()
3785 ath6kl_band_2ghz.ht_cap.cap = 0; in ath6kl_cfg80211_init()
3786 ath6kl_band_2ghz.ht_cap.ht_supported = false; in ath6kl_cfg80211_init()
3787 ath6kl_band_5ghz.ht_cap.cap = 0; in ath6kl_cfg80211_init()
3788 ath6kl_band_5ghz.ht_cap.ht_supported = false; in ath6kl_cfg80211_init()
3793 ath6kl_band_2ghz.ht_cap.mcs.rx_mask[0] = 0xff; in ath6kl_cfg80211_init()
[all …]
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192ce/
Dhw.c1855 u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl92ce_update_hal_rate_table()
1857 u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl92ce_update_hal_rate_table()
1869 ratr_value |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl92ce_update_hal_rate_table()
1870 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl92ce_update_hal_rate_table()
1943 u8 curtxbw_40mhz = (sta->ht_cap.cap & in rtl92ce_update_hal_rate_mask()
1945 u8 curshortgi_40mhz = (sta->ht_cap.cap & in rtl92ce_update_hal_rate_mask()
1947 u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl92ce_update_hal_rate_mask()
1969 ratr_bitmap |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl92ce_update_hal_rate_mask()
1970 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl92ce_update_hal_rate_mask()
Dtrx.c525 u8 ampdu_density = sta->ht_cap.ampdu_density; in rtl92ce_tx_fill_desc()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8723ae/
Dhw.c1916 u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl8723e_update_hal_rate_table()
1918 u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl8723e_update_hal_rate_table()
1929 ratr_value |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl8723e_update_hal_rate_table()
1930 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl8723e_update_hal_rate_table()
2003 u8 curtxbw_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) in rtl8723e_update_hal_rate_mask()
2005 u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl8723e_update_hal_rate_mask()
2007 u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl8723e_update_hal_rate_mask()
2029 ratr_bitmap |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl8723e_update_hal_rate_mask()
2030 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl8723e_update_hal_rate_mask()
Dtrx.c400 bw_40 = sta->ht_cap.cap & in rtl8723e_tx_fill_desc()
466 u8 ampdu_density = sta->ht_cap.ampdu_density; in rtl8723e_tx_fill_desc()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192se/
Dhw.c2045 u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl92se_update_hal_rate_table()
2047 u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl92se_update_hal_rate_table()
2057 ratr_value |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl92se_update_hal_rate_table()
2058 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl92se_update_hal_rate_table()
2144 u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl92se_update_hal_rate_mask()
2146 u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl92se_update_hal_rate_mask()
2172 ratr_bitmap |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl92se_update_hal_rate_mask()
2173 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl92se_update_hal_rate_mask()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192de/
Dhw.c1879 u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl92de_update_hal_rate_table()
1881 u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl92de_update_hal_rate_table()
1889 ratr_value |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl92de_update_hal_rate_table()
1890 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl92de_update_hal_rate_table()
1958 u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl92de_update_hal_rate_mask()
1960 u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl92de_update_hal_rate_mask()
1981 ratr_bitmap |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl92de_update_hal_rate_mask()
1982 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl92de_update_hal_rate_mask()
Dtrx.c662 u8 ampdu_density = sta->ht_cap.ampdu_density; in rtl92de_tx_fill_desc()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8188ee/
Dhw.c2054 u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl88ee_update_hal_rate_table()
2056 u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl88ee_update_hal_rate_table()
2067 ratr_value |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl88ee_update_hal_rate_table()
2068 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl88ee_update_hal_rate_table()
2140 u8 curtxbw_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) in rtl88ee_update_hal_rate_mask()
2142 u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl88ee_update_hal_rate_mask()
2144 u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl88ee_update_hal_rate_mask()
2167 ratr_bitmap |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl88ee_update_hal_rate_mask()
2168 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl88ee_update_hal_rate_mask()
Dtrx.c528 bw_40 = sta->ht_cap.cap & in rtl88ee_tx_fill_desc()
615 u8 ampdu_density = sta->ht_cap.ampdu_density; in rtl88ee_tx_fill_desc()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192cu/
Dhw.c2028 u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl92cu_update_hal_rate_table()
2030 u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl92cu_update_hal_rate_table()
2041 ratr_value |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl92cu_update_hal_rate_table()
2042 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl92cu_update_hal_rate_table()
2116 (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl92cu_update_hal_rate_mask()
2118 u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl92cu_update_hal_rate_mask()
2141 ratr_bitmap |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl92cu_update_hal_rate_mask()
2142 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl92cu_update_hal_rate_mask()
Dtrx.c567 u8 ampdu_density = sta->ht_cap.ampdu_density; in rtl92cu_tx_fill_desc()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/
Dmac80211_if.c226 .ht_cap = {
248 .ht_cap = {
869 sta->ht_cap.ampdu_factor)) - 1); in brcms_ops_ampdu_action()
1039 band->ht_cap.mcs.rx_mask[1] = 0; in ieee_hw_rate_init()
1040 band->ht_cap.mcs.rx_highest = cpu_to_le16(72); in ieee_hw_rate_init()
/linux-4.1.27/drivers/pci/
Dpci.c337 static int __pci_find_next_ht_cap(struct pci_dev *dev, int pos, int ht_cap) in __pci_find_next_ht_cap() argument
342 if (ht_cap == HT_CAPTYPE_SLAVE || ht_cap == HT_CAPTYPE_HOST) in __pci_find_next_ht_cap()
354 if ((cap & mask) == ht_cap) in __pci_find_next_ht_cap()
377 int pci_find_next_ht_capability(struct pci_dev *dev, int pos, int ht_cap) in pci_find_next_ht_capability() argument
379 return __pci_find_next_ht_cap(dev, pos + PCI_CAP_LIST_NEXT, ht_cap); in pci_find_next_ht_capability()
394 int pci_find_ht_capability(struct pci_dev *dev, int ht_cap) in pci_find_ht_capability() argument
400 pos = __pci_find_next_ht_cap(dev, pos, ht_cap); in pci_find_ht_capability()
/linux-4.1.27/drivers/net/wireless/iwlwifi/
Diwl-nvm-parse.c430 iwl_init_ht_hw_capab(cfg, data, &sband->ht_cap, IEEE80211_BAND_2GHZ, in iwl_init_sbands()
439 iwl_init_ht_hw_capab(cfg, data, &sband->ht_cap, IEEE80211_BAND_5GHZ, in iwl_init_sbands()
Diwl-eeprom-parse.c822 iwl_init_ht_hw_capab(cfg, data, &sband->ht_cap, IEEE80211_BAND_2GHZ, in iwl_init_sbands()
831 iwl_init_ht_hw_capab(cfg, data, &sband->ht_cap, IEEE80211_BAND_5GHZ, in iwl_init_sbands()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8723be/
Dtrx.c453 bw_40 = sta->ht_cap.cap & in rtl8723be_tx_fill_desc()
539 u8 ampdu_density = sta->ht_cap.ampdu_density; in rtl8723be_tx_fill_desc()
Dhw.c2336 u8 curtxbw_40mhz = (sta->ht_cap.cap & in rtl8723be_update_hal_rate_mask()
2338 u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl8723be_update_hal_rate_mask()
2340 u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl8723be_update_hal_rate_mask()
2361 ratr_bitmap |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl8723be_update_hal_rate_mask()
2362 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl8723be_update_hal_rate_mask()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8821ae/
Dhw.c3371 u8 b_curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl8821ae_update_hal_rate_table()
3373 u8 b_curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl8821ae_update_hal_rate_table()
3383 ratr_value |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl8821ae_update_hal_rate_table()
3384 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl8821ae_update_hal_rate_table()
3624 u8 b_curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in _rtl8821ae_get_ra_shortgi()
3626 u8 b_curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in _rtl8821ae_get_ra_shortgi()
3652 u8 curtxbw_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) in rtl8821ae_update_hal_rate_mask()
3683 ratr_bitmap |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl8821ae_update_hal_rate_mask()
3684 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl8821ae_update_hal_rate_mask()
Dtrx.c781 u8 ampdu_density = sta->ht_cap.ampdu_density; in rtl8821ae_tx_fill_desc()
/linux-4.1.27/drivers/staging/rtl8723au/hal/
Dusb_halinit.c1210 update_MSC_rate23a(&pmlmeinfo->ht_cap) : 0; in rtl8723a_update_ramask()
1212 if (support_short_GI23a(padapter, &pmlmeinfo->ht_cap)) in rtl8723a_update_ramask()
Drtl8723a_bt-coexist.c5842 update_MSC_rate23a(&pmlmeinfo->ht_cap):0; in btdm_1AntUpdateHalRAMask()
5843 if (support_short_GI23a(padapter, &pmlmeinfo->ht_cap)) in btdm_1AntUpdateHalRAMask()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192ee/
Dhw.c2315 u8 curtxbw_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) in rtl92ee_update_hal_rate_mask()
2317 u8 b_curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl92ee_update_hal_rate_mask()
2319 u8 b_curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl92ee_update_hal_rate_mask()
2339 ratr_bitmap |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl92ee_update_hal_rate_mask()
2340 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl92ee_update_hal_rate_mask()
Dtrx.c691 bw_40 = sta->ht_cap.cap & in rtl92ee_tx_fill_desc()
790 u8 ampdu_density = sta->ht_cap.ampdu_density; in rtl92ee_tx_fill_desc()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dcfg80211.c5576 band->ht_cap.ht_supported = true; in brcmf_update_ht_cap()
5578 band->ht_cap.cap |= IEEE80211_HT_CAP_SGI_40; in brcmf_update_ht_cap()
5579 band->ht_cap.cap |= IEEE80211_HT_CAP_SUP_WIDTH_20_40; in brcmf_update_ht_cap()
5581 band->ht_cap.cap |= IEEE80211_HT_CAP_SGI_20; in brcmf_update_ht_cap()
5582 band->ht_cap.cap |= IEEE80211_HT_CAP_DSSSCCK40; in brcmf_update_ht_cap()
5583 band->ht_cap.ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K; in brcmf_update_ht_cap()
5584 band->ht_cap.ampdu_density = IEEE80211_HT_MPDU_DENSITY_16; in brcmf_update_ht_cap()
5585 memset(band->ht_cap.mcs.rx_mask, 0xff, nchain); in brcmf_update_ht_cap()
5586 band->ht_cap.mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; in brcmf_update_ht_cap()
6098 cap = &wiphy->bands[IEEE80211_BAND_2GHZ]->ht_cap.cap; in brcmf_cfg80211_attach()
/linux-4.1.27/drivers/net/wireless/rt2x00/
Drt2x00dev.c984 memcpy(&rt2x00dev->bands[IEEE80211_BAND_2GHZ].ht_cap, in rt2x00lib_probe_hw_modes()
1002 memcpy(&rt2x00dev->bands[IEEE80211_BAND_5GHZ].ht_cap, in rt2x00lib_probe_hw_modes()
Drt2x00queue.c312 sta->ht_cap.ampdu_density; in rt2x00queue_create_tx_descriptor_ht()
/linux-4.1.27/drivers/net/wireless/ti/wl12xx/
Dmain.c1657 struct ieee80211_sta_ht_cap *ht_cap, in wl12xx_set_peer_cap() argument
1661 return wl1271_acx_set_ht_capabilities(wl, ht_cap, allow_ht_operation, in wl12xx_set_peer_cap()
/linux-4.1.27/drivers/staging/wlan-ng/
Dcfg80211.c773 priv->band.ht_cap.ht_supported = false; in wlan_create_wiphy()
/linux-4.1.27/include/linux/
Dpci.h842 int pci_find_ht_capability(struct pci_dev *dev, int ht_cap);
843 int pci_find_next_ht_capability(struct pci_dev *dev, int pos, int ht_cap);
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
Dcfg80211.c40 .ht_cap = {
/linux-4.1.27/include/net/
Dmac80211.h1621 struct ieee80211_sta_ht_cap ht_cap; member
Dcfg80211.h329 struct ieee80211_sta_ht_cap ht_cap; member