/net/mac80211/ |
D | rate.c | 37 struct ieee80211_supported_band *sband; in rate_control_rate_init() local 53 sband = local->hw.wiphy->bands[chanctx_conf->def.chan->band]; in rate_control_rate_init() 56 if (sband->band == NL80211_BAND_S1GHZ) { in rate_control_rate_init() 63 ref->ops->rate_init(ref->priv, sband, &chanctx_conf->def, ista, in rate_control_rate_init() 76 struct ieee80211_supported_band *sband; in rate_control_tx_status() local 81 sband = local->hw.wiphy->bands[st->info->band]; in rate_control_tx_status() 85 ref->ops->tx_status_ext(ref->priv, sband, priv_sta, st); in rate_control_tx_status() 87 ref->ops->tx_status(ref->priv, sband, st->sta, priv_sta, st->skb); in rate_control_tx_status() 95 struct ieee80211_supported_band *sband, in rate_control_rate_update() argument 116 ref->ops->rate_update(ref->priv, sband, &chanctx_conf->def, in rate_control_rate_update() [all …]
|
D | mesh.c | 65 struct ieee80211_supported_band *sband; in mesh_matches_local() local 87 sband = ieee80211_get_sband(sdata); in mesh_matches_local() 88 if (!sband) in mesh_matches_local() 91 ieee80211_sta_get_rates(sdata, ie, sband->band, in mesh_matches_local() 421 struct ieee80211_supported_band *sband; in mesh_add_ht_cap_ie() local 424 sband = ieee80211_get_sband(sdata); in mesh_add_ht_cap_ie() 425 if (!sband) in mesh_add_ht_cap_ie() 429 if (sband->band == NL80211_BAND_6GHZ) in mesh_add_ht_cap_ie() 432 if (!sband->ht_cap.ht_supported || in mesh_add_ht_cap_ie() 442 ieee80211_ie_build_ht_cap(pos, &sband->ht_cap, sband->ht_cap.cap); in mesh_add_ht_cap_ie() [all …]
|
D | main.c | 1056 struct ieee80211_supported_band *sband; in ieee80211_register_hw() local 1058 sband = local->hw.wiphy->bands[band]; in ieee80211_register_hw() 1059 if (!sband) in ieee80211_register_hw() 1067 for (i = 0; i < sband->n_channels; i++) in ieee80211_register_hw() 1068 if (!(sband->channels[i].flags & in ieee80211_register_hw() 1072 if (i == sband->n_channels) in ieee80211_register_hw() 1075 &sband->channels[i], in ieee80211_register_hw() 1085 channels += sband->n_channels; in ieee80211_register_hw() 1087 if (max_bitrates < sband->n_bitrates) in ieee80211_register_hw() 1088 max_bitrates = sband->n_bitrates; in ieee80211_register_hw() [all …]
|
D | ibss.c | 50 struct ieee80211_supported_band *sband; in ieee80211_ibss_build_presp() local 93 sband = local->hw.wiphy->bands[chandef->chan->band]; in ieee80211_ibss_build_presp() 100 for (i = 0; i < sband->n_bitrates; i++) { in ieee80211_ibss_build_presp() 101 if ((rate_flags & sband->bitrates[i].flags) != rate_flags) in ieee80211_ibss_build_presp() 103 if (sband->bitrates[i].bitrate > 110 && in ieee80211_ibss_build_presp() 113 for (ri = 0; ri < sband->n_bitrates; ri++) { in ieee80211_ibss_build_presp() 114 int rate = DIV_ROUND_UP(sband->bitrates[ri].bitrate, in ieee80211_ibss_build_presp() 129 if (sband->band == NL80211_BAND_2GHZ) { in ieee80211_ibss_build_presp() 157 for (; ri < sband->n_bitrates; ri++) { in ieee80211_ibss_build_presp() 158 int rate = DIV_ROUND_UP(sband->bitrates[ri].bitrate, in ieee80211_ibss_build_presp() [all …]
|
D | rc80211_minstrel_ht.c | 1282 minstrel_ht_tx_status(void *priv, struct ieee80211_supported_band *sband, in minstrel_ht_tx_status() argument 1653 struct ieee80211_supported_band *sband, in minstrel_ht_update_cck() argument 1658 if (sband->band != NL80211_BAND_2GHZ) in minstrel_ht_update_cck() 1667 !rate_supported(sta, sband->band, mp->cck_rates[i])) in minstrel_ht_update_cck() 1671 if (sband->bitrates[i].flags & IEEE80211_RATE_SHORT_PREAMBLE) in minstrel_ht_update_cck() 1678 struct ieee80211_supported_band *sband, in minstrel_ht_update_ofdm() argument 1687 rates = mp->ofdm_rates[sband->band]; in minstrel_ht_update_ofdm() 1690 !rate_supported(sta, sband->band, rates[i])) in minstrel_ht_update_ofdm() 1698 minstrel_ht_update_caps(void *priv, struct ieee80211_supported_band *sband, in minstrel_ht_update_caps() argument 1726 mi->band = sband->band; in minstrel_ht_update_caps() [all …]
|
D | mesh_plink.c | 96 struct ieee80211_supported_band *sband; in mesh_set_short_slot_time() local 102 sband = ieee80211_get_sband(sdata); in mesh_set_short_slot_time() 103 if (!sband) in mesh_set_short_slot_time() 106 if (sband->band == NL80211_BAND_5GHZ) { in mesh_set_short_slot_time() 110 } else if (sband->band != NL80211_BAND_2GHZ) { in mesh_set_short_slot_time() 114 for (i = 0; i < sband->n_bitrates; i++) in mesh_set_short_slot_time() 115 if (sband->bitrates[i].flags & IEEE80211_RATE_ERP_G) in mesh_set_short_slot_time() 128 if (erp_rates & sta->sta.deflink.supp_rates[sband->band]) in mesh_set_short_slot_time() 260 struct ieee80211_supported_band *sband; in mesh_plink_frame_tx() local 263 sband = ieee80211_get_sband(sdata); in mesh_plink_frame_tx() [all …]
|
D | util.c | 216 struct ieee80211_supported_band *sband; in ieee80211_rts_duration() local 218 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_rts_duration() 222 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx]; in ieee80211_rts_duration() 236 dur = ieee80211_frame_duration(sband->band, 10, bitrate, in ieee80211_rts_duration() 239 dur += ieee80211_frame_duration(sband->band, frame_len, bitrate, in ieee80211_rts_duration() 242 dur += ieee80211_frame_duration(sband->band, 10, bitrate, in ieee80211_rts_duration() 260 struct ieee80211_supported_band *sband; in ieee80211_ctstoself_duration() local 262 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_ctstoself_duration() 266 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx]; in ieee80211_ctstoself_duration() 279 dur = ieee80211_frame_duration(sband->band, frame_len, bitrate, in ieee80211_ctstoself_duration() [all …]
|
D | airtime.c | 470 struct ieee80211_supported_band *sband; in ieee80211_calc_rx_airtime() local 483 sband = hw->wiphy->bands[status->band]; in ieee80211_calc_rx_airtime() 484 if (!sband || status->rate_idx >= sband->n_bitrates) in ieee80211_calc_rx_airtime() 487 rate = &sband->bitrates[status->rate_idx]; in ieee80211_calc_rx_airtime() 510 struct ieee80211_supported_band *sband = hw->wiphy->bands[band]; in ieee80211_fill_rate_info() local 513 if (!ri || !sband) in ieee80211_fill_rate_info() 538 for (i = 0; i < sband->n_bitrates; i++) { in ieee80211_fill_rate_info() 539 if (ri->legacy != sband->bitrates[i].bitrate) in ieee80211_fill_rate_info() 633 struct ieee80211_supported_band *sband; in ieee80211_calc_expected_tx_airtime() local 701 sband = hw->wiphy->bands[band]; in ieee80211_calc_expected_tx_airtime() [all …]
|
D | mlme.c | 149 struct ieee80211_supported_band *sband, in ieee80211_determine_chantype() argument 184 } else if (sband->band == NL80211_BAND_S1GHZ) { in ieee80211_determine_chantype() 198 memcpy(&sta_ht_cap, &sband->ht_cap, sizeof(sta_ht_cap)); in ieee80211_determine_chantype() 246 if (!vht_oper || !sband->vht_cap.vht_supported) { in ieee80211_determine_chantype() 422 struct ieee80211_supported_band *sband = in ieee80211_config_bw() local 440 !ieee80211_get_he_iftype_cap(sband, in ieee80211_config_bw() 448 !ieee80211_get_eht_iftype_cap(sband, in ieee80211_config_bw() 468 sband, chan, vht_cap_info, in ieee80211_config_bw() 532 struct ieee80211_supported_band *sband, in ieee80211_add_ht_ie() argument 542 BUILD_BUG_ON(sizeof(ht_cap) != sizeof(sband->ht_cap)); in ieee80211_add_ht_ie() [all …]
|
D | tdls.c | 53 struct ieee80211_supported_band *sband = ieee80211_get_sband(sdata); in ieee80211_tdls_add_ext_capab() local 54 bool vht = sband && sband->vht_cap.vht_supported; in ieee80211_tdls_add_ext_capab() 186 struct ieee80211_supported_band *sband; in ieee80211_get_tdls_sta_capab() local 192 sband = ieee80211_get_sband(sdata); in ieee80211_get_tdls_sta_capab() 193 if (sband && sband->band == NL80211_BAND_2GHZ) { in ieee80211_get_tdls_sta_capab() 367 struct ieee80211_supported_band *sband; in ieee80211_tdls_add_setup_start_ies() local 375 sband = ieee80211_get_sband(sdata); in ieee80211_tdls_add_setup_start_ies() 376 if (!sband) in ieee80211_tdls_add_setup_start_ies() 379 ieee80211_add_srates_ie(sdata, skb, false, sband->band); in ieee80211_tdls_add_setup_start_ies() 380 ieee80211_add_ext_srates_ie(sdata, skb, false, sband->band); in ieee80211_tdls_add_setup_start_ies() [all …]
|
D | vht.c | 117 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() 742 struct ieee80211_supported_band *sband = local->hw.wiphy->bands[band]; in ieee80211_vht_handle_opmode() local 749 rate_control_rate_update(local, sband, link_sta->sta, in ieee80211_vht_handle_opmode()
|
D | eht.c | 12 struct ieee80211_supported_band *sband, in ieee80211_eht_cap_ie_to_sta_eht_cap() argument 28 !ieee80211_get_eht_iftype_cap(sband, in ieee80211_eht_cap_ie_to_sta_eht_cap()
|
D | ocb.c | 46 struct ieee80211_supported_band *sband; in ieee80211_ocb_rx_no_sta() local 77 sband = local->hw.wiphy->bands[band]; in ieee80211_ocb_rx_no_sta() 79 ieee80211_mandatory_rates(sband, scan_width); in ieee80211_ocb_rx_no_sta()
|
D | he.c | 111 struct ieee80211_supported_band *sband, in ieee80211_he_cap_ie_to_sta_he_cap() argument 131 ieee80211_get_he_iftype_cap(sband, 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()
|
D | cfg.c | 835 struct ieee80211_supported_band *sband; in sta_set_rate_info_tx() local 839 sband = ieee80211_get_sband(sta->sdata); in sta_set_rate_info_tx() 840 WARN_ON_ONCE(sband && !sband->bitrates); in sta_set_rate_info_tx() 841 if (sband && sband->bitrates) { in sta_set_rate_info_tx() 842 brate = sband->bitrates[rate->idx].bitrate; in sta_set_rate_info_tx() 1687 struct ieee80211_supported_band *sband; in sta_link_apply_parameters() local 1711 sband = ieee80211_get_link_sband(link); in sta_link_apply_parameters() 1712 if (!sband) in sta_link_apply_parameters() 1739 sband, params->supported_rates, in sta_link_apply_parameters() 1741 &link_sta->pub->supp_rates[sband->band]); in sta_link_apply_parameters() [all …]
|
D | agg-rx.c | 186 struct ieee80211_supported_band *sband; in ieee80211_add_addbaext() local 192 sband = ieee80211_get_sband(sdata); in ieee80211_add_addbaext() 193 if (!sband) in ieee80211_add_addbaext() 195 he_cap = ieee80211_get_he_iftype_cap(sband, in ieee80211_add_addbaext()
|
/net/wireless/ |
D | mesh.c | 140 struct ieee80211_supported_band *sband; in __cfg80211_join_mesh() local 144 sband = rdev->wiphy.bands[band]; in __cfg80211_join_mesh() 145 if (!sband) in __cfg80211_join_mesh() 148 for (i = 0; i < sband->n_channels; i++) { in __cfg80211_join_mesh() 149 chan = &sband->channels[i]; in __cfg80211_join_mesh() 176 struct ieee80211_supported_band *sband = in __cfg80211_join_mesh() local 189 for (i = 0; i < sband->n_bitrates; i++) { in __cfg80211_join_mesh() 190 if (sband->bitrates[i].bitrate == 10) { in __cfg80211_join_mesh() 197 setup->basic_rates = ieee80211_mandatory_rates(sband, in __cfg80211_join_mesh()
|
D | util.c | 28 ieee80211_get_response_rate(struct ieee80211_supported_band *sband, in ieee80211_get_response_rate() argument 31 struct ieee80211_rate *result = &sband->bitrates[0]; in ieee80211_get_response_rate() 34 for (i = 0; i < sband->n_bitrates; i++) { in ieee80211_get_response_rate() 37 if (sband->bitrates[i].bitrate > bitrate) in ieee80211_get_response_rate() 39 result = &sband->bitrates[i]; in ieee80211_get_response_rate() 46 u32 ieee80211_mandatory_rates(struct ieee80211_supported_band *sband, in ieee80211_mandatory_rates() argument 54 if (WARN_ON(!sband)) in ieee80211_mandatory_rates() 57 if (sband->band == NL80211_BAND_2GHZ) { in ieee80211_mandatory_rates() 67 bitrates = sband->bitrates; in ieee80211_mandatory_rates() 68 for (i = 0; i < sband->n_bitrates; i++) in ieee80211_mandatory_rates() [all …]
|
D | debugfs.c | 70 struct ieee80211_supported_band *sband; in ht40allow_map_read() local 78 sband = wiphy->bands[band]; in ht40allow_map_read() 79 if (!sband) in ht40allow_map_read() 81 for (i = 0; i < sband->n_channels; i++) in ht40allow_map_read() 82 offset += ht_print_chan(&sband->channels[i], in ht40allow_map_read()
|
D | of.c | 52 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()
|
D | core.c | 694 struct ieee80211_supported_band *sband; in wiphy_register() local 825 sband = wiphy->bands[band]; in wiphy_register() 826 if (!sband) in wiphy_register() 829 sband->band = band; in wiphy_register() 830 if (WARN_ON(!sband->n_channels)) in wiphy_register() 838 !sband->n_bitrates)) in wiphy_register() 842 (sband->ht_cap.ht_supported || in wiphy_register() 843 sband->vht_cap.vht_supported))) in wiphy_register() 853 sband->ht_cap.ht_supported) { in wiphy_register() 854 sband->ht_cap.cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; in wiphy_register() [all …]
|
D | ibss.c | 108 struct ieee80211_supported_band *sband; in __cfg80211_join_ibss() local 120 sband = rdev->wiphy.bands[band]; in __cfg80211_join_ibss() 121 for (j = 0; j < sband->n_bitrates; j++) { in __cfg80211_join_ibss() 122 if (sband->bitrates[j].flags & flag) in __cfg80211_join_ibss() 253 struct ieee80211_supported_band *sband; in cfg80211_ibss_wext_join() local 256 sband = rdev->wiphy.bands[band]; in cfg80211_ibss_wext_join() 257 if (!sband) in cfg80211_ibss_wext_join() 260 for (i = 0; i < sband->n_channels; i++) { in cfg80211_ibss_wext_join() 261 chan = &sband->channels[i]; in cfg80211_ibss_wext_join()
|
D | reg.c | 2069 struct ieee80211_supported_band *sband) in handle_band() argument 2073 if (!sband) in handle_band() 2076 for (i = 0; i < sband->n_channels; i++) in handle_band() 2077 handle_channel(wiphy, initiator, &sband->channels[i]); in handle_band() 2193 struct ieee80211_supported_band *sband; in handle_reg_beacon() local 2198 sband = wiphy->bands[reg_beacon->chan.band]; in handle_reg_beacon() 2199 chan = &sband->channels[chan_idx]; in handle_reg_beacon() 2234 struct ieee80211_supported_band *sband; in wiphy_update_new_beacon() local 2239 sband = wiphy->bands[reg_beacon->chan.band]; in wiphy_update_new_beacon() 2241 for (i = 0; i < sband->n_channels; i++) in wiphy_update_new_beacon() [all …]
|
D | chan.c | 1051 struct ieee80211_supported_band *sband; in cfg80211_chandef_usable() local 1161 sband = wiphy->bands[NL80211_BAND_6GHZ]; in cfg80211_chandef_usable() 1162 if (!sband) in cfg80211_chandef_usable() 1165 for (i = 0; i < sband->n_iftype_data; i++) { in cfg80211_chandef_usable() 1166 iftd = &sband->iftype_data[i]; in cfg80211_chandef_usable() 1411 struct ieee80211_supported_band *sband = wiphy->bands[idx]; in cfg80211_any_usable_channels() local 1414 if (!sband) in cfg80211_any_usable_channels() 1417 for (chanidx = 0; chanidx < sband->n_channels; chanidx++) { in cfg80211_any_usable_channels() 1420 chan = &sband->channels[chanidx]; in cfg80211_any_usable_channels()
|
D | wext-compat.c | 188 struct ieee80211_supported_band *sband; in cfg80211_wext_giwrange() local 190 sband = wdev->wiphy->bands[band]; in cfg80211_wext_giwrange() 192 if (!sband) in cfg80211_wext_giwrange() 195 for (i = 0; i < sband->n_channels && c < IW_MAX_FREQUENCIES; i++) { in cfg80211_wext_giwrange() 196 struct ieee80211_channel *chan = &sband->channels[i]; in cfg80211_wext_giwrange() 1258 struct ieee80211_supported_band *sband; in cfg80211_wext_siwrate() local 1278 sband = wdev->wiphy->bands[band]; in cfg80211_wext_siwrate() 1279 if (sband == NULL) in cfg80211_wext_siwrate() 1281 for (ridx = 0; ridx < sband->n_bitrates; ridx++) { in cfg80211_wext_siwrate() 1282 struct ieee80211_rate *srate = &sband->bitrates[ridx]; in cfg80211_wext_siwrate()
|