Home
last modified time | relevance | path

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

12

/net/mac80211/tests/
A Dutil.c226 sband = t_sdata->wiphy->bands[band]; in t_sdata_init()
227 sband->band = band; in t_sdata_init()
229 sband->bitrates = in t_sdata_init()
240 sband->bitrates = kmemdup(bitrates, in t_sdata_init()
250 sband->bitrates = kmemdup(bitrates, in t_sdata_init()
256 sband->vht_cap.cap = in t_sdata_init()
265 sband->vht_cap.vht_mcs.rx_mcs_map = in t_sdata_init()
270 sband->vht_cap.vht_mcs.tx_mcs_map = 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()
[all …]
/net/mac80211/
A Drate.c38 struct ieee80211_supported_band *sband; in rate_control_rate_init() local
61 if (sband->band == NL80211_BAND_S1GHZ) { in rate_control_rate_init()
96 struct ieee80211_supported_band *sband; in rate_control_tx_status() local
297 struct ieee80211_supported_band *sband; in ieee80211_check_rate_mask() local
314 sband = local->hw.wiphy->bands[band]; in ieee80211_check_rate_mask()
398 WARN_ONCE(i == sband->n_bitrates, in __rate_control_send_low()
402 sband->band, in __rate_control_send_low()
417 struct ieee80211_supported_band *sband = txrc->sband; in rate_control_send_low() local
442 sband); in rate_control_send_low()
667 sband->bitrates[i].bitrate) in rate_fixup_ratelist()
[all …]
A Dmesh.c92 if (!sband) in mesh_matches_local()
432 if (!sband) 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()
504 if (!sband) in mesh_add_vht_cap_ie()
574 if (!sband) in mesh_add_he_cap_ie()
594 if (!sband) in mesh_add_he_oper_ie()
624 if (!sband) in mesh_add_he_6ghz_cap_ie()
643 if (!sband) in mesh_add_eht_cap_ie()
662 if (!sband) in mesh_add_eht_oper_ie()
723 if (!sband) in ieee80211_mesh_update_bss_params()
[all …]
A Dmain.c1235 if (!sband) in ieee80211_register_hw()
1244 if (!(sband->channels[i].flags & in ieee80211_register_hw()
1248 if (i == sband->n_channels) in ieee80211_register_hw()
1251 &sband->channels[i], in ieee80211_register_hw()
1261 channels += sband->n_channels; in ieee80211_register_hw()
1274 max_bitrates = sband->n_bitrates; in ieee80211_register_hw()
1295 sband->ht_cap.ht_supported && in ieee80211_register_hw()
1315 if (!sband->ht_cap.ht_supported) in ieee80211_register_hw()
1549 if (!sband || !sband->vht_cap.vht_supported) in ieee80211_register_hw()
1558 sband = kmemdup(sband, sizeof(*sband), GFP_KERNEL); in ieee80211_register_hw()
[all …]
A Dmesh_plink.c96 struct ieee80211_supported_band *sband; in mesh_set_short_slot_time() local
103 sband = ieee80211_get_sband(sdata); in mesh_set_short_slot_time()
104 if (!sband) in mesh_set_short_slot_time()
107 if (sband->band == NL80211_BAND_5GHZ) { in mesh_set_short_slot_time()
115 for (i = 0; i < sband->n_bitrates; i++) in mesh_set_short_slot_time()
266 struct ieee80211_supported_band *sband; in mesh_plink_frame_tx() local
269 sband = ieee80211_get_sband(sdata); in mesh_plink_frame_tx()
270 if (!sband) { in mesh_plink_frame_tx()
430 struct ieee80211_supported_band *sband; in mesh_sta_info_init() local
434 sband = ieee80211_get_sband(sdata); in mesh_sta_info_init()
[all …]
A Drc80211_minstrel_ht.c1658 if (sband->band != NL80211_BAND_2GHZ) in minstrel_ht_update_cck()
1687 rates = mp->ofdm_rates[sband->band]; in minstrel_ht_update_ofdm()
1725 mi->band = sband->band; in minstrel_ht_update_caps()
1733 ctl_rate = &sband->bitrates[rate_lowest_index(sband, sta)]; in minstrel_ht_update_caps()
1852 struct ieee80211_supported_band *sband; in minstrel_ht_alloc_sta() local
1860 sband = hw->wiphy->bands[i]; in minstrel_ht_alloc_sta()
1861 if (sband && sband->n_bitrates > max_rates) in minstrel_ht_alloc_sta()
1862 max_rates = sband->n_bitrates; in minstrel_ht_alloc_sta()
1901 if (!sband) in minstrel_ht_init_cck_rates()
1917 sband = mp->hw->wiphy->bands[band]; in minstrel_ht_init_ofdm_rates()
[all …]
A Dibss.c50 struct ieee80211_supported_band *sband; in ieee80211_ibss_build_presp() local
98 if (sband->bitrates[i].bitrate > 110 && in ieee80211_ibss_build_presp()
123 if (sband->band == NL80211_BAND_2GHZ) { in ieee80211_ibss_build_presp()
151 for (; ri < sband->n_bitrates; ri++) { in ieee80211_ibss_build_presp()
172 sband->ht_cap.ht_supported) { in ieee80211_ibss_build_presp()
190 sband->vht_cap.vht_supported) { in ieee80211_ibss_build_presp()
192 sband->vht_cap.cap); in ieee80211_ibss_build_presp()
622 ieee80211_mandatory_rates(sband); in ieee80211_ibss_add_sta()
975 if (WARN_ON(!sband)) in ieee80211_update_sta_info()
990 ieee80211_mandatory_rates(sband); in ieee80211_update_sta_info()
[all …]
A Dutil.c211 struct ieee80211_supported_band *sband; in ieee80211_rts_duration() local
254 struct ieee80211_supported_band *sband; in ieee80211_ctstoself_duration() local
1212 if (WARN_ON_ONCE(!sband)) in ieee80211_put_preq_ies_band()
1277 if (sband->ht_cap.ht_supported) { in ieee80211_put_preq_ies_band()
1285 sband->ht_cap.cap); in ieee80211_put_preq_ies_band()
1330 sband->vht_cap.cap); in ieee80211_put_preq_ies_band()
1526 if (WARN_ON(!sband)) in ieee80211_sta_get_rates()
1529 num_rates = sband->n_bitrates; in ieee80211_sta_get_rates()
2426 sband = ieee80211_get_sband(sdata); in ieee80211_ie_len_he_cap()
2427 if (!sband) in ieee80211_ie_len_he_cap()
[all …]
A Dtdls.c55 bool vht = sband && sband->vht_cap.vht_supported; in ieee80211_tdls_add_ext_capab()
187 struct ieee80211_supported_band *sband; in ieee80211_get_tdls_sta_capab() local
193 sband = ieee80211_get_link_sband(link); in ieee80211_get_tdls_sta_capab()
195 if (sband && sband->band == NL80211_BAND_2GHZ) { in ieee80211_get_tdls_sta_capab()
371 struct ieee80211_supported_band *sband; in ieee80211_tdls_add_setup_start_ies() local
381 sband = ieee80211_get_link_sband(link); in ieee80211_tdls_add_setup_start_ies()
382 if (WARN_ON_ONCE(!sband)) in ieee80211_tdls_add_setup_start_ies()
557 if (sband->band == NL80211_BAND_6GHZ) in ieee80211_tdls_add_setup_start_ies()
601 struct ieee80211_supported_band *sband; in ieee80211_tdls_add_setup_cfm_ies() local
604 sband = ieee80211_get_link_sband(link); in ieee80211_tdls_add_setup_cfm_ies()
[all …]
A Dairtime.c589 struct ieee80211_supported_band *sband; in ieee80211_calc_rx_airtime() local
602 sband = hw->wiphy->bands[status->band]; in ieee80211_calc_rx_airtime()
603 if (!sband || status->rate_idx >= sband->n_bitrates) in ieee80211_calc_rx_airtime()
606 rate = &sband->bitrates[status->rate_idx]; in ieee80211_calc_rx_airtime()
629 struct ieee80211_supported_band *sband = hw->wiphy->bands[band]; in ieee80211_fill_rate_info() local
632 if (!ri || !sband) in ieee80211_fill_rate_info()
666 for (i = 0; i < sband->n_bitrates; i++) { in ieee80211_fill_rate_info()
667 if (ri->legacy != sband->bitrates[i].bitrate) in ieee80211_fill_rate_info()
761 struct ieee80211_supported_band *sband; in ieee80211_calc_expected_tx_airtime() local
827 sband = hw->wiphy->bands[band]; in ieee80211_calc_expected_tx_airtime()
[all …]
A Dmlme.c356 if (sband->band == NL80211_BAND_6GHZ) in ieee80211_verify_sta_ht_mcs_support()
396 if (sband->band != NL80211_BAND_5GHZ) in ieee80211_verify_sta_vht_mcs_support()
744 br = &sband->bitrates[j]; in ieee80211_get_rates()
1794 *pos++ = 2 * sband->n_channels; in ieee80211_add_link_elems()
1813 sband, chan, smps_mode, in ieee80211_add_link_elems()
2088 size += 4 + sband->n_bitrates; in ieee80211_link_common_elems_size()
2091 size += 2 + 2 * sband->n_channels; in ieee80211_link_common_elems_size()
3793 if (!sband) in ieee80211_handle_bss_capability()
5904 switch (sband->band) { in ieee80211_determine_our_sta_mode()
9330 if (WARN_ON(!sband)) in ieee80211_setup_assoc_link()
[all …]
A Deht.c12 struct ieee80211_supported_band *sband, in ieee80211_eht_cap_ie_to_sta_eht_cap() argument
28 !ieee80211_get_eht_iftype_cap_vif(sband, &sdata->vif)) in ieee80211_eht_cap_ie_to_sta_eht_cap()
83 if (sband->band != NL80211_BAND_2GHZ) in ieee80211_eht_cap_ie_to_sta_eht_cap()
A Dhe.c112 struct ieee80211_supported_band *sband, in ieee80211_he_cap_ie_to_sta_he_cap() argument
132 ieee80211_get_he_iftype_cap_vif(sband, &sdata->vif); in ieee80211_he_cap_ie_to_sta_he_cap()
167 if (sband->band == NL80211_BAND_6GHZ && he_6ghz_capa) in ieee80211_he_cap_ie_to_sta_he_cap()
257 struct ieee80211_supported_band *sband; in ieee80211_link_sta_rc_update_omi() local
262 sband = sdata->local->hw.wiphy->bands[band]; in ieee80211_link_sta_rc_update_omi()
269 rate_control_rate_update(sdata->local, sband, link_sta, in ieee80211_link_sta_rc_update_omi()
A Dvht.c117 struct ieee80211_supported_band *sband, in ieee80211_vht_cap_ie_to_sta_vht_cap() argument
133 if (!vht_cap_ie || !sband->vht_cap.vht_supported) in ieee80211_vht_cap_ie_to_sta_vht_cap()
138 for (i = 0; i < sband->n_channels; i++) { in ieee80211_vht_cap_ie_to_sta_vht_cap()
139 if (sband->channels[i].flags & (IEEE80211_CHAN_DISABLED | in ieee80211_vht_cap_ie_to_sta_vht_cap()
159 own_cap = sband->vht_cap; in ieee80211_vht_cap_ie_to_sta_vht_cap()
766 struct ieee80211_supported_band *sband = local->hw.wiphy->bands[band]; in ieee80211_vht_handle_opmode() local
773 rate_control_rate_update(local, sband, link_sta, changed); in ieee80211_vht_handle_opmode()
A Dht.c139 struct ieee80211_supported_band *sband, in ieee80211_ht_cap_ie_to_sta_ht_cap() argument
154 if (!ht_cap_ie || !sband->ht_cap.ht_supported) in ieee80211_ht_cap_ie_to_sta_ht_cap()
159 own_cap = sband->ht_cap; in ieee80211_ht_cap_ie_to_sta_ht_cap()
614 struct ieee80211_supported_band *sband; in ieee80211_ht_handle_chanwidth_notif() local
632 sband = local->hw.wiphy->bands[band]; in ieee80211_ht_handle_chanwidth_notif()
637 rate_control_rate_update(local, sband, link_sta, in ieee80211_ht_handle_chanwidth_notif()
A Docb.c46 struct ieee80211_supported_band *sband; in ieee80211_ocb_rx_no_sta() local
75 sband = local->hw.wiphy->bands[band]; in ieee80211_ocb_rx_no_sta()
76 sta->sta.deflink.supp_rates[band] = ieee80211_mandatory_rates(sband); in ieee80211_ocb_rx_no_sta()
/net/wireless/
A Dmesh.c143 struct ieee80211_supported_band *sband; in __cfg80211_join_mesh() local
147 sband = rdev->wiphy.bands[band]; in __cfg80211_join_mesh()
148 if (!sband) in __cfg80211_join_mesh()
151 for (i = 0; i < sband->n_channels; i++) { in __cfg80211_join_mesh()
152 chan = &sband->channels[i]; in __cfg80211_join_mesh()
178 struct ieee80211_supported_band *sband = in __cfg80211_join_mesh() local
191 for (i = 0; i < sband->n_bitrates; i++) { in __cfg80211_join_mesh()
192 if (sband->bitrates[i].bitrate == 10) { in __cfg80211_join_mesh()
198 setup->basic_rates = ieee80211_mandatory_rates(sband); in __cfg80211_join_mesh()
A Dutil.c39 result = &sband->bitrates[i]; in ieee80211_get_response_rate()
53 if (WARN_ON(!sband)) in ieee80211_mandatory_rates()
61 bitrates = sband->bitrates; in ieee80211_mandatory_rates()
170 sband = wiphy->bands[band]; in ieee80211_get_channel_khz()
172 if (!sband) in ieee80211_get_channel_khz()
191 switch (sband->band) { in set_mandatory_flags_band()
199 sband->bitrates[i].flags |= in set_mandatory_flags_band()
215 sband->bitrates[i].flags |= in set_mandatory_flags_band()
223 sband->bitrates[i].flags |= in set_mandatory_flags_band()
228 sband->bitrates[i].flags |= in set_mandatory_flags_band()
[all …]
A Dof.c52 struct ieee80211_supported_band *sband = wiphy->bands[band]; in wiphy_freq_limits_apply() local
54 if (!sband) in wiphy_freq_limits_apply()
57 for (i = 0; i < sband->n_channels; i++) { in wiphy_freq_limits_apply()
58 struct ieee80211_channel *chan = &sband->channels[i]; in wiphy_freq_limits_apply()
A Dibss.c109 struct ieee80211_supported_band *sband; in __cfg80211_join_ibss() local
121 sband = rdev->wiphy.bands[band]; in __cfg80211_join_ibss()
122 for (j = 0; j < sband->n_bitrates; j++) { in __cfg80211_join_ibss()
123 if (sband->bitrates[j].flags & flag) in __cfg80211_join_ibss()
232 struct ieee80211_supported_band *sband; in cfg80211_ibss_wext_join() local
235 sband = rdev->wiphy.bands[band]; in cfg80211_ibss_wext_join()
236 if (!sband) in cfg80211_ibss_wext_join()
239 for (i = 0; i < sband->n_channels; i++) { in cfg80211_ibss_wext_join()
240 chan = &sband->channels[i]; in cfg80211_ibss_wext_join()
A Dcore.c871 sband = wiphy->bands[band]; in wiphy_register()
872 if (!sband) in wiphy_register()
875 sband->band = band; in wiphy_register()
876 if (WARN_ON(!sband->n_channels)) in wiphy_register()
884 !sband->n_bitrates)) in wiphy_register()
899 sband->ht_cap.ht_supported) { in wiphy_register()
913 sband->channels[i].orig_flags = in wiphy_register()
914 sband->channels[i].flags; in wiphy_register()
916 sband->channels[i].orig_mpwr = in wiphy_register()
917 sband->channels[i].max_power; in wiphy_register()
[all …]
A Ddebugfs.c71 struct ieee80211_supported_band *sband; in ht40allow_map_read() local
79 sband = wiphy->bands[band]; in ht40allow_map_read()
80 if (!sband) in ht40allow_map_read()
82 for (i = 0; i < sband->n_channels; i++) in ht40allow_map_read()
83 offset += ht_print_chan(&sband->channels[i], in ht40allow_map_read()
A Dreg.c2065 if (!sband) in handle_band()
2068 for (i = 0; i < sband->n_channels; i++) in handle_band()
2192 struct ieee80211_supported_band *sband; in handle_reg_beacon() local
2199 chan = &sband->channels[chan_idx]; in handle_reg_beacon()
2237 struct ieee80211_supported_band *sband; in wiphy_update_new_beacon() local
2244 for (i = 0; i < sband->n_channels; i++) in wiphy_update_new_beacon()
2351 if (!sband) in reg_process_ht_flags_band()
2613 if (!sband) in handle_band_custom()
3466 sband = wiphy->bands[band]; in restore_custom_reg_settings()
3467 if (!sband) in restore_custom_reg_settings()
[all …]
A Dchan.c1144 struct ieee80211_supported_band *sband; in _cfg80211_chandef_usable() local
1255 sband = wiphy->bands[NL80211_BAND_6GHZ]; in _cfg80211_chandef_usable()
1256 if (!sband) in _cfg80211_chandef_usable()
1259 for_each_sband_iftype_data(sband, i, iftd) { in _cfg80211_chandef_usable()
1528 struct ieee80211_supported_band *sband = wiphy->bands[idx]; in cfg80211_any_usable_channels() local
1531 if (!sband) in cfg80211_any_usable_channels()
1534 for (chanidx = 0; chanidx < sband->n_channels; chanidx++) { in cfg80211_any_usable_channels()
1537 chan = &sband->channels[chanidx]; in cfg80211_any_usable_channels()
A Dwext-compat.c185 struct ieee80211_supported_band *sband; in cfg80211_wext_giwrange() local
187 sband = wdev->wiphy->bands[band]; in cfg80211_wext_giwrange()
189 if (!sband) in cfg80211_wext_giwrange()
192 for (i = 0; i < sband->n_channels && c < IW_MAX_FREQUENCIES; i++) { in cfg80211_wext_giwrange()
193 struct ieee80211_channel *chan = &sband->channels[i]; in cfg80211_wext_giwrange()
1190 struct ieee80211_supported_band *sband; in cfg80211_wext_siwrate() local
1210 sband = wdev->wiphy->bands[band]; in cfg80211_wext_siwrate()
1211 if (sband == NULL) in cfg80211_wext_siwrate()
1213 for (ridx = 0; ridx < sband->n_bitrates; ridx++) { in cfg80211_wext_siwrate()
1214 struct ieee80211_rate *srate = &sband->bitrates[ridx]; in cfg80211_wext_siwrate()

Completed in 894 milliseconds

12