/net/mac80211/ |
D | rate.c | 36 struct ieee80211_supported_band *sband; in rate_control_rate_init() local 52 sband = local->hw.wiphy->bands[chanctx_conf->def.chan->band]; in rate_control_rate_init() 55 ref->ops->rate_init(ref->priv, sband, &chanctx_conf->def, ista, in rate_control_rate_init() 63 struct ieee80211_supported_band *sband, in rate_control_tx_status() argument 75 ref->ops->tx_status_ext(ref->priv, sband, priv_sta, st); in rate_control_tx_status() 77 ref->ops->tx_status(ref->priv, sband, st->sta, priv_sta, st->skb); in rate_control_tx_status() 85 struct ieee80211_supported_band *sband, in rate_control_rate_update() argument 103 ref->ops->rate_update(ref->priv, sband, &chanctx_conf->def, in rate_control_rate_update() 262 struct ieee80211_supported_band *sband; in ieee80211_check_rate_mask() local 274 sband = local->hw.wiphy->bands[band]; in ieee80211_check_rate_mask() [all …]
|
D | mesh.c | 65 struct ieee80211_supported_band *sband; in mesh_matches_local() local 86 sband = ieee80211_get_sband(sdata); in mesh_matches_local() 87 if (!sband) in mesh_matches_local() 90 ieee80211_sta_get_rates(sdata, ie, sband->band, in mesh_matches_local() 411 struct ieee80211_supported_band *sband; in mesh_add_ht_cap_ie() local 414 sband = ieee80211_get_sband(sdata); in mesh_add_ht_cap_ie() 415 if (!sband) in mesh_add_ht_cap_ie() 418 if (!sband->ht_cap.ht_supported || in mesh_add_ht_cap_ie() 428 ieee80211_ie_build_ht_cap(pos, &sband->ht_cap, sband->ht_cap.cap); in mesh_add_ht_cap_ie() 439 struct ieee80211_supported_band *sband; in mesh_add_ht_oper_ie() local [all …]
|
D | main.c | 950 struct ieee80211_supported_band *sband; in ieee80211_register_hw() local 952 sband = local->hw.wiphy->bands[band]; in ieee80211_register_hw() 953 if (!sband) in ieee80211_register_hw() 961 for (i = 0; i < sband->n_channels; i++) in ieee80211_register_hw() 962 if (!(sband->channels[i].flags & in ieee80211_register_hw() 966 if (i == sband->n_channels) in ieee80211_register_hw() 969 &sband->channels[i], in ieee80211_register_hw() 979 channels += sband->n_channels; in ieee80211_register_hw() 981 if (max_bitrates < sband->n_bitrates) in ieee80211_register_hw() 982 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 | 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.supp_rates[sband->band]) in mesh_set_short_slot_time() 258 struct ieee80211_supported_band *sband; in mesh_plink_frame_tx() local 261 sband = ieee80211_get_sband(sdata); in mesh_plink_frame_tx() [all …]
|
D | rc80211_minstrel.c | 260 minstrel_tx_status(void *priv, struct ieee80211_supported_band *sband, in minstrel_tx_status() argument 458 minstrel_rate_init(void *priv, struct ieee80211_supported_band *sband, in minstrel_rate_init() argument 470 mi->lowest_rix = rate_lowest_index(sband, sta); in minstrel_rate_init() 471 ctl_rate = &sband->bitrates[mi->lowest_rix]; in minstrel_rate_init() 472 mi->sp_ack_dur = ieee80211_frame_duration(sband->band, 10, in minstrel_rate_init() 481 for (i = 0; i < sband->n_bitrates; i++) { in minstrel_rate_init() 489 if (!rate_supported(sta, sband->band, i)) in minstrel_rate_init() 491 if ((rate_flags & sband->bitrates[i].flags) != rate_flags) in minstrel_rate_init() 500 mr->bitrate = DIV_ROUND_UP(sband->bitrates[i].bitrate, in minstrel_rate_init() 502 calc_rate_durations(sband->band, mr, &sband->bitrates[i], in minstrel_rate_init() [all …]
|
D | util.c | 165 struct ieee80211_supported_band *sband; in ieee80211_rts_duration() local 167 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_rts_duration() 171 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx]; in ieee80211_rts_duration() 185 dur = ieee80211_frame_duration(sband->band, 10, bitrate, in ieee80211_rts_duration() 188 dur += ieee80211_frame_duration(sband->band, frame_len, bitrate, in ieee80211_rts_duration() 191 dur += ieee80211_frame_duration(sband->band, 10, bitrate, in ieee80211_rts_duration() 209 struct ieee80211_supported_band *sband; in ieee80211_ctstoself_duration() local 211 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_ctstoself_duration() 215 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx]; in ieee80211_ctstoself_duration() 228 dur = ieee80211_frame_duration(sband->band, frame_len, bitrate, in ieee80211_ctstoself_duration() [all …]
|
D | rc80211_minstrel_ht.c | 883 minstrel_ht_tx_status(void *priv, struct ieee80211_supported_band *sband, in minstrel_ht_tx_status() argument 897 return mac80211_minstrel.tx_status_ext(priv, sband, in minstrel_ht_tx_status() 1356 struct ieee80211_supported_band *sband, in minstrel_ht_update_cck() argument 1361 if (sband->band != NL80211_BAND_2GHZ) in minstrel_ht_update_cck() 1370 if (!rate_supported(sta, sband->band, mp->cck_rates[i])) in minstrel_ht_update_cck() 1374 if (sband->bitrates[i].flags & IEEE80211_RATE_SHORT_PREAMBLE) in minstrel_ht_update_cck() 1382 minstrel_ht_update_caps(void *priv, struct ieee80211_supported_band *sband, in minstrel_ht_update_caps() argument 1416 ack_dur = ieee80211_frame_duration(sband->band, 10, 60, 1, 1, 0); in minstrel_ht_update_caps() 1417 mi->overhead = ieee80211_frame_duration(sband->band, 0, 60, 1, 1, 0); in minstrel_ht_update_caps() 1455 minstrel_ht_update_cck(mp, mi, sband, sta); in minstrel_ht_update_caps() [all …]
|
D | mlme.c | 146 struct ieee80211_supported_band *sband, in ieee80211_determine_chantype() argument 158 memcpy(&sta_ht_cap, &sband->ht_cap, sizeof(sta_ht_cap)); in ieee80211_determine_chantype() 203 if (!vht_oper || !sband->vht_cap.vht_supported) { in ieee80211_determine_chantype() 330 struct ieee80211_supported_band *sband = in ieee80211_config_bw() local 348 !ieee80211_get_he_sta_cap(sband)) in ieee80211_config_bw() 365 flags = ieee80211_determine_chantype(sdata, sband, chan, in ieee80211_config_bw() 430 rate_control_rate_update(local, sband, sta, in ieee80211_config_bw() 444 rate_control_rate_update(local, sband, sta, in ieee80211_config_bw() 455 struct ieee80211_supported_band *sband, in ieee80211_add_ht_ie() argument 464 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 | status.c | 302 struct ieee80211_supported_band *sband, in ieee80211_add_tx_radiotap_header() argument 342 sband->bitrates[info->status.rates[0].idx].bitrate; in ieee80211_add_tx_radiotap_header() 805 struct ieee80211_supported_band *sband, in ieee80211_tx_monitor() argument 822 ieee80211_add_tx_radiotap_header(local, sband, skb, retry_count, in ieee80211_tx_monitor() 871 struct ieee80211_supported_band *sband; in __ieee80211_tx_status() local 882 sband = local->hw.wiphy->bands[info->band]; in __ieee80211_tx_status() 970 rate_control_tx_status(local, sband, status); in __ieee80211_tx_status() 1064 ieee80211_tx_monitor(local, skb, sband, retry_count, shift, in __ieee80211_tx_status() 1101 struct ieee80211_supported_band *sband; in ieee80211_tx_status_ext() local 1113 sband = hw->wiphy->bands[info->band]; in ieee80211_tx_status_ext() [all …]
|
D | vht.c | 117 struct ieee80211_supported_band *sband, in ieee80211_vht_cap_ie_to_sta_vht_cap() argument 131 if (!vht_cap_ie || !sband->vht_cap.vht_supported) in ieee80211_vht_cap_ie_to_sta_vht_cap() 136 for (i = 0; i < sband->n_channels; i++) { in ieee80211_vht_cap_ie_to_sta_vht_cap() 137 if (sband->channels[i].flags & (IEEE80211_CHAN_DISABLED | in ieee80211_vht_cap_ie_to_sta_vht_cap() 157 own_cap = sband->vht_cap; in ieee80211_vht_cap_ie_to_sta_vht_cap() 602 struct ieee80211_supported_band *sband = local->hw.wiphy->bands[band]; in ieee80211_vht_handle_opmode() local 608 rate_control_rate_update(local, sband, sta, changed); in ieee80211_vht_handle_opmode()
|
D | he.c | 12 struct ieee80211_supported_band *sband, in ieee80211_he_cap_ie_to_sta_he_cap() argument 24 if (!he_cap_ie || !ieee80211_get_he_sta_cap(sband)) in ieee80211_he_cap_ie_to_sta_he_cap()
|
D | ocb.c | 45 struct ieee80211_supported_band *sband; in ieee80211_ocb_rx_no_sta() local 76 sband = local->hw.wiphy->bands[band]; in ieee80211_ocb_rx_no_sta() 78 ieee80211_mandatory_rates(sband, scan_width); in ieee80211_ocb_rx_no_sta()
|
D | rate.h | 29 struct ieee80211_supported_band *sband, 34 struct ieee80211_supported_band *sband,
|
D | cfg.c | 696 struct ieee80211_supported_band *sband; in sta_set_rate_info_tx() local 700 sband = ieee80211_get_sband(sta->sdata); in sta_set_rate_info_tx() 701 WARN_ON_ONCE(sband && !sband->bitrates); in sta_set_rate_info_tx() 702 if (sband && sband->bitrates) { in sta_set_rate_info_tx() 703 brate = sband->bitrates[rate->idx].bitrate; in sta_set_rate_info_tx() 1335 struct ieee80211_supported_band *sband; in sta_apply_parameters() local 1339 sband = ieee80211_get_sband(sdata); in sta_apply_parameters() 1340 if (!sband) in sta_apply_parameters() 1481 sband, params->supported_rates, in sta_apply_parameters() 1483 &sta->sta.supp_rates[sband->band]); in sta_apply_parameters() [all …]
|
D | tx.c | 58 struct ieee80211_supported_band *sband; in ieee80211_duration() local 80 sband = local->hw.wiphy->bands[info->band]; in ieee80211_duration() 81 txrate = &sband->bitrates[tx->rate.idx]; in ieee80211_duration() 140 mrate = sband->bitrates[0].bitrate; in ieee80211_duration() 141 for (i = 0; i < sband->n_bitrates; i++) { in ieee80211_duration() 142 struct ieee80211_rate *r = &sband->bitrates[i]; in ieee80211_duration() 153 switch (sband->band) { in ieee80211_duration() 190 dur = ieee80211_frame_duration(sband->band, 10, rate, erp, in ieee80211_duration() 199 dur += ieee80211_frame_duration(sband->band, next_frag_len, in ieee80211_duration() 674 struct ieee80211_supported_band *sband; in ieee80211_tx_h_rate_ctrl() local [all …]
|
/net/wireless/ |
D | mesh.c | 135 struct ieee80211_supported_band *sband; in __cfg80211_join_mesh() local 139 sband = rdev->wiphy.bands[band]; in __cfg80211_join_mesh() 140 if (!sband) in __cfg80211_join_mesh() 143 for (i = 0; i < sband->n_channels; i++) { in __cfg80211_join_mesh() 144 chan = &sband->channels[i]; in __cfg80211_join_mesh() 171 struct ieee80211_supported_band *sband = in __cfg80211_join_mesh() local 184 for (i = 0; i < sband->n_bitrates; i++) { in __cfg80211_join_mesh() 185 if (sband->bitrates[i].bitrate == 10) { in __cfg80211_join_mesh() 192 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 80 sband = wiphy->bands[band]; in ht40allow_map_read() 81 if (!sband) in ht40allow_map_read() 83 for (i = 0; i < sband->n_channels; i++) in ht40allow_map_read() 84 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 | 651 struct ieee80211_supported_band *sband; in wiphy_register() local 793 sband = wiphy->bands[band]; in wiphy_register() 794 if (!sband) in wiphy_register() 797 sband->band = band; in wiphy_register() 798 if (WARN_ON(!sband->n_channels)) in wiphy_register() 805 !sband->n_bitrates)) in wiphy_register() 809 (sband->ht_cap.ht_supported || in wiphy_register() 810 sband->vht_cap.vht_supported))) in wiphy_register() 820 sband->ht_cap.ht_supported) { in wiphy_register() 821 sband->ht_cap.cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; in wiphy_register() [all …]
|
D | ibss.c | 107 struct ieee80211_supported_band *sband; in __cfg80211_join_ibss() local 119 sband = rdev->wiphy.bands[band]; in __cfg80211_join_ibss() 120 for (j = 0; j < sband->n_bitrates; j++) { in __cfg80211_join_ibss() 121 if (sband->bitrates[j].flags & flag) in __cfg80211_join_ibss() 254 struct ieee80211_supported_band *sband; in cfg80211_ibss_wext_join() local 257 sband = rdev->wiphy.bands[band]; in cfg80211_ibss_wext_join() 258 if (!sband) in cfg80211_ibss_wext_join() 261 for (i = 0; i < sband->n_channels; i++) { in cfg80211_ibss_wext_join() 262 chan = &sband->channels[i]; in cfg80211_ibss_wext_join()
|
D | reg.c | 1812 struct ieee80211_supported_band *sband) in handle_band() argument 1816 if (!sband) in handle_band() 1819 for (i = 0; i < sband->n_channels; i++) in handle_band() 1820 handle_channel(wiphy, initiator, &sband->channels[i]); in handle_band() 1936 struct ieee80211_supported_band *sband; in handle_reg_beacon() local 1941 sband = wiphy->bands[reg_beacon->chan.band]; in handle_reg_beacon() 1942 chan = &sband->channels[chan_idx]; in handle_reg_beacon() 1977 struct ieee80211_supported_band *sband; in wiphy_update_new_beacon() local 1982 sband = wiphy->bands[reg_beacon->chan.band]; in wiphy_update_new_beacon() 1984 for (i = 0; i < sband->n_channels; i++) in wiphy_update_new_beacon() [all …]
|
D | wext-compat.c | 186 struct ieee80211_supported_band *sband; in cfg80211_wext_giwrange() local 188 sband = wdev->wiphy->bands[band]; in cfg80211_wext_giwrange() 190 if (!sband) in cfg80211_wext_giwrange() 193 for (i = 0; i < sband->n_channels && c < IW_MAX_FREQUENCIES; i++) { in cfg80211_wext_giwrange() 194 struct ieee80211_channel *chan = &sband->channels[i]; in cfg80211_wext_giwrange() 1206 struct ieee80211_supported_band *sband; in cfg80211_wext_siwrate() local 1226 sband = wdev->wiphy->bands[band]; in cfg80211_wext_siwrate() 1227 if (sband == NULL) in cfg80211_wext_siwrate() 1229 for (ridx = 0; ridx < sband->n_bitrates; ridx++) { in cfg80211_wext_siwrate() 1230 struct ieee80211_rate *srate = &sband->bitrates[ridx]; in cfg80211_wext_siwrate()
|