Home
last modified time | relevance | path

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

/net/mac80211/
A Dht.c29 ht_cap->cap &= ~flag; in __check_htcap_disable()
42 ht_cap->cap |= flag; in __check_htcap_enable()
52 if (!ht_cap->ht_supported) in ieee80211_apply_htcap_overrides()
152 memset(&ht_cap, 0, sizeof(ht_cap)); in ieee80211_ht_cap_ie_to_sta_ht_cap()
159 own_cap = sband->ht_cap; in ieee80211_ht_cap_ie_to_sta_ht_cap()
195 ht_cap.ampdu_factor = in ieee80211_ht_cap_ie_to_sta_ht_cap()
197 ht_cap.ampdu_density = in ieee80211_ht_cap_ie_to_sta_ht_cap()
226 ht_cap.mcs.rx_mask[i] = in ieee80211_ht_cap_ie_to_sta_ht_cap()
232 ht_cap.mcs.rx_mask[i] = in ieee80211_ht_cap_ie_to_sta_ht_cap()
251 changed = memcmp(&link_sta->pub->ht_cap, &ht_cap, sizeof(ht_cap)); in ieee80211_ht_cap_ie_to_sta_ht_cap()
[all …]
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()
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()
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.ht_supported && sta->sta.deflink.ht_cap.ht_supported) { in ieee80211_tdls_add_setup_start_ies()
467 memcpy(&ht_cap, &sta->sta.deflink.ht_cap, sizeof(ht_cap)); in ieee80211_tdls_add_setup_start_ies()
470 ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); in ieee80211_tdls_add_setup_start_ies()
473 if (ht_cap.ht_supported && in ieee80211_tdls_add_setup_start_ies()
653 if (!ap_sta->sta.deflink.ht_cap.ht_supported && sta->sta.deflink.ht_cap.ht_supported) { in ieee80211_tdls_add_setup_cfm_ies()
[all …]
A Drc80211_minstrel_ht.c677 if (!mi->sta->deflink.ht_cap.ht_supported) in minstrel_ht_prob_rate_reduce_streams()
1067 bool ht_supported = mi->sta->deflink.ht_cap.ht_supported; in minstrel_ht_update_stats()
1661 if (sta->deflink.ht_cap.ht_supported && in minstrel_ht_update_cck()
1684 if (sta->deflink.ht_cap.ht_supported) in minstrel_ht_update_ofdm()
1704 struct ieee80211_mcs_info *mcs = &sta->deflink.ht_cap.mcs; in minstrel_ht_update_caps()
1705 u16 ht_cap = sta->deflink.ht_cap.cap; in minstrel_ht_update_caps() local
1743 stbc = (ht_cap & IEEE80211_HT_CAP_RX_STBC) >> in minstrel_ht_update_caps()
1746 ldpc = ht_cap & IEEE80211_HT_CAP_LDPC_CODING; in minstrel_ht_update_caps()
1768 if (!(ht_cap & IEEE80211_HT_CAP_SGI_40)) in minstrel_ht_update_caps()
1771 if (!(ht_cap & IEEE80211_HT_CAP_SGI_20)) in minstrel_ht_update_caps()
A Dmain.c1268 if (WARN_ON(sband->ht_cap.ht_supported && in ieee80211_register_hw()
1269 (sband->ht_cap.cap & IEEE80211_HT_CAP_DELAY_BA) && in ieee80211_register_hw()
1275 supp_ht = supp_ht || sband->ht_cap.ht_supported; in ieee80211_register_hw()
1295 sband->ht_cap.ht_supported && in ieee80211_register_hw()
1296 sband->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 && in ieee80211_register_hw()
1315 if (!sband->ht_cap.ht_supported) in ieee80211_register_hw()
1320 max(ieee80211_mcs_to_chains(&sband->ht_cap.mcs), in ieee80211_register_hw()
1324 sband->ht_cap.cap |= WLAN_HT_CAP_SM_PS_DISABLED << in ieee80211_register_hw()
A Dibss.c172 sband->ht_cap.ht_supported) { in ieee80211_ibss_build_presp()
173 struct ieee80211_sta_ht_cap ht_cap; in ieee80211_ibss_build_presp() local
175 memcpy(&ht_cap, &sband->ht_cap, sizeof(ht_cap)); in ieee80211_ibss_build_presp()
176 ieee80211_apply_htcap_overrides(sdata, &ht_cap); in ieee80211_ibss_build_presp()
178 pos = ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); in ieee80211_ibss_build_presp()
184 pos = ieee80211_ie_build_ht_oper(pos, &sband->ht_cap, in ieee80211_ibss_build_presp()
A Dmesh.c439 if (!sband->ht_cap.ht_supported || in mesh_add_ht_cap_ie()
449 ieee80211_ie_build_ht_cap(pos, &sband->ht_cap, sband->ht_cap.cap); in mesh_add_ht_cap_ie()
461 struct ieee80211_sta_ht_cap *ht_cap; in mesh_add_ht_oper_ie() local
474 ht_cap = &sband->ht_cap; in mesh_add_ht_oper_ie()
480 if (!ht_cap->ht_supported || in mesh_add_ht_oper_ie()
490 ieee80211_ie_build_ht_oper(pos, ht_cap, &sdata->vif.bss_conf.chanreq.oper, in mesh_add_ht_oper_ie()
A Dutil.c1277 if (sband->ht_cap.ht_supported) { in ieee80211_put_preq_ies_band()
1284 ieee80211_ie_build_ht_cap(pos, &sband->ht_cap, in ieee80211_put_preq_ies_band()
1285 sband->ht_cap.cap); in ieee80211_put_preq_ies_band()
2363 u8 *ieee80211_ie_build_ht_cap(u8 *pos, struct ieee80211_sta_ht_cap *ht_cap, in ieee80211_ie_build_ht_cap() argument
2378 *pos++ = ht_cap->ampdu_factor | in ieee80211_ie_build_ht_cap()
2379 (ht_cap->ampdu_density << in ieee80211_ie_build_ht_cap()
2383 memcpy(pos, &ht_cap->mcs, sizeof(ht_cap->mcs)); in ieee80211_ie_build_ht_cap()
2384 pos += sizeof(ht_cap->mcs); in ieee80211_ie_build_ht_cap()
2631 u8 *ieee80211_ie_build_ht_oper(u8 *pos, struct ieee80211_sta_ht_cap *ht_cap, in ieee80211_ie_build_ht_oper() argument
2660 if (ht_cap->cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 && in ieee80211_ie_build_ht_oper()
[all …]
A Dagg-rx.c301 !sta->sta.deflink.ht_cap.ht_supported && in __ieee80211_start_rx_ba_session()
331 !(sta->sta.deflink.ht_cap.cap & IEEE80211_HT_CAP_DELAY_BA) || in __ieee80211_start_rx_ba_session()
A Dagg-tx.c616 !pubsta->deflink.ht_cap.ht_supported && in ieee80211_start_tx_ba_session()
672 !sta->sta.deflink.ht_cap.ht_supported) { in ieee80211_start_tx_ba_session()
A Dmlme.c362 memcpy(&sta_ht_cap, &sband->ht_cap, sizeof(sta_ht_cap)); in ieee80211_verify_sta_ht_mcs_support()
1370 struct ieee80211_sta_ht_cap ht_cap; in ieee80211_add_ht_ie() local
1372 BUILD_BUG_ON(sizeof(ht_cap) != sizeof(sband->ht_cap)); in ieee80211_add_ht_ie()
1374 memcpy(&ht_cap, &sband->ht_cap, sizeof(ht_cap)); in ieee80211_add_ht_ie()
1375 ieee80211_apply_htcap_overrides(sdata, &ht_cap); in ieee80211_add_ht_ie()
1378 cap = ht_cap.cap; in ieee80211_add_ht_ie()
1428 ieee80211_ie_build_ht_cap(pos, &ht_cap, cap); in ieee80211_add_ht_ie()
5676 const struct ieee80211_ht_cap *ht_cap; in ieee80211_max_rx_chains() local
5690 ht_cap = (void *)ht_cap_elem->data; in ieee80211_max_rx_chains()
5691 chains = ieee80211_mcs_to_chains(&ht_cap->mcs); in ieee80211_max_rx_chains()
[all …]
A Dieee80211_i.h2172 struct ieee80211_sta_ht_cap *ht_cap);
2648 u8 *ieee80211_ie_build_ht_cap(u8 *pos, struct ieee80211_sta_ht_cap *ht_cap,
2650 u8 *ieee80211_ie_build_ht_oper(u8 *pos, struct ieee80211_sta_ht_cap *ht_cap,
A Drate.c808 mcs_mask[i] &= sta->deflink.ht_cap.mcs.rx_mask[i]; in rate_control_cap_mask()
A Dmesh_plink.c184 if (!sta->sta.deflink.ht_cap.ht_supported) { in mesh_set_ht_prot_mode()
A Ddebugfs_sta.c476 struct ieee80211_sta_ht_cap *htc = &link_sta->pub->ht_cap; in link_sta_ht_capa_read()
A Dchan.c261 if (link_sta->pub->ht_cap.ht_supported) in ieee80211_get_sta_bw()
A Diface.c2257 sband->ht_cap.mcs.rx_mask, in ieee80211_if_add()
A Drx.c3525 if (!rx->link_sta->pub->ht_cap.ht_supported) in ieee80211_rx_h_action()
3590 if (!(rx->link_sta->pub->ht_cap.cap & in ieee80211_rx_h_action()
A Dcfg.c1406 if (params->ht_cap) in ieee80211_start_ap()
1408 params->ht_cap->cap_info & in ieee80211_start_ap()
A Dtx.c1182 (!sta->sta.valid_links && !sta->sta.deflink.ht_cap.ht_supported && in ieee80211_aggr_check()
/net/mac80211/tests/
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()
/net/wireless/
A Dchan.c1138 struct ieee80211_sta_ht_cap *ht_cap; in _cfg80211_chandef_usable() local
1151 ht_cap = &wiphy->bands[chandef->chan->band]->ht_cap; in _cfg80211_chandef_usable()
1191 if (!ht_cap->ht_supported && in _cfg80211_chandef_usable()
1203 if (!ht_cap->ht_supported) in _cfg80211_chandef_usable()
1205 if (!(ht_cap->cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) || in _cfg80211_chandef_usable()
1206 ht_cap->cap & IEEE80211_HT_CAP_40MHZ_INTOLERANT) in _cfg80211_chandef_usable()
A Dcore.c888 (sband->ht_cap.ht_supported || in wiphy_register()
899 sband->ht_cap.ht_supported) { in wiphy_register()
900 sband->ht_cap.cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; in wiphy_register()
901 sband->ht_cap.cap &= ~IEEE80211_HT_CAP_SGI_40; in wiphy_register()
A Dutil.c237 WARN_ON(!sband->ht_cap.ht_supported); in set_mandatory_flags_band()
238 WARN_ON((sband->ht_cap.mcs.rx_mask[0] & 0x1e) != 0x1e); in set_mandatory_flags_band()
A Dnl80211.c1969 if (sband->ht_cap.ht_supported && in nl80211_send_band_rateinfo()
1971 sizeof(sband->ht_cap.mcs), in nl80211_send_band_rateinfo()
1972 &sband->ht_cap.mcs) || in nl80211_send_band_rateinfo()
1974 sband->ht_cap.cap) || in nl80211_send_band_rateinfo()
1976 sband->ht_cap.ampdu_factor) || in nl80211_send_band_rateinfo()
1978 sband->ht_cap.ampdu_density))) in nl80211_send_band_rateinfo()
5234 if (sband->ht_cap.mcs.rx_mask[ridx] & rbit) in ht_rateset_to_mask()
5427 sband->ht_cap.mcs.rx_mask, in nl80211_parse_tx_bitrate_mask()
5519 if (!(rdev->wiphy.bands[band]->ht_cap.ht_supported || in nl80211_parse_tx_bitrate_mask()
6062 if (cap && cap->datalen >= sizeof(*params->ht_cap)) in nl80211_calculate_ap_params()
[all …]

Completed in 143 milliseconds