Lines Matching refs:sband

211 	struct ieee80211_supported_band *sband;  in ieee80211_rts_duration()  local
213 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_rts_duration()
217 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx]; in ieee80211_rts_duration()
230 dur = ieee80211_frame_duration(sband->band, 10, bitrate, in ieee80211_rts_duration()
233 dur += ieee80211_frame_duration(sband->band, frame_len, bitrate, in ieee80211_rts_duration()
236 dur += ieee80211_frame_duration(sband->band, 10, bitrate, in ieee80211_rts_duration()
254 struct ieee80211_supported_band *sband; in ieee80211_ctstoself_duration() local
256 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_ctstoself_duration()
260 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx]; in ieee80211_ctstoself_duration()
272 dur = ieee80211_frame_duration(sband->band, frame_len, bitrate, in ieee80211_ctstoself_duration()
276 dur += ieee80211_frame_duration(sband->band, 10, bitrate, in ieee80211_ctstoself_duration()
1204 struct ieee80211_supported_band *sband; in ieee80211_put_preq_ies_band() local
1212 sband = local->hw.wiphy->bands[band]; in ieee80211_put_preq_ies_band()
1213 if (WARN_ON_ONCE(!sband)) in ieee80211_put_preq_ies_band()
1220 return ieee80211_put_s1g_cap(skb, &sband->s1g_cap); in ieee80211_put_preq_ies_band()
1222 err = ieee80211_put_srates_elem(skb, sband, 0, rate_flags, in ieee80211_put_preq_ies_band()
1244 err = ieee80211_put_srates_elem(skb, sband, 0, rate_flags, in ieee80211_put_preq_ies_band()
1249 if (chandef->chan && sband->band == NL80211_BAND_2GHZ) { in ieee80211_put_preq_ies_band()
1280 if (sband->ht_cap.ht_supported) { in ieee80211_put_preq_ies_band()
1287 ieee80211_ie_build_ht_cap(pos, &sband->ht_cap, in ieee80211_put_preq_ies_band()
1288 sband->ht_cap.cap); in ieee80211_put_preq_ies_band()
1316 for (i = 0; i < sband->n_channels; i++) { in ieee80211_put_preq_ies_band()
1317 if (sband->channels[i].flags & (IEEE80211_CHAN_DISABLED | in ieee80211_put_preq_ies_band()
1325 if (sband->vht_cap.vht_supported && have_80mhz) { in ieee80211_put_preq_ies_band()
1332 ieee80211_ie_build_vht_cap(pos, &sband->vht_cap, in ieee80211_put_preq_ies_band()
1333 sband->vht_cap.cap); in ieee80211_put_preq_ies_band()
1356 if (cfg80211_any_usable_channels(local->hw.wiphy, BIT(sband->band), in ieee80211_put_preq_ies_band()
1358 err = ieee80211_put_he_cap(skb, sdata, sband, NULL); in ieee80211_put_preq_ies_band()
1363 if (cfg80211_any_usable_channels(local->hw.wiphy, BIT(sband->band), in ieee80211_put_preq_ies_band()
1366 err = ieee80211_put_eht_cap(skb, sdata, sband, NULL); in ieee80211_put_preq_ies_band()
1523 struct ieee80211_supported_band *sband; in ieee80211_sta_get_rates() local
1528 sband = sdata->local->hw.wiphy->bands[band]; in ieee80211_sta_get_rates()
1529 if (WARN_ON(!sband)) in ieee80211_sta_get_rates()
1535 num_rates = sband->n_bitrates; in ieee80211_sta_get_rates()
1555 if ((rate_flags & sband->bitrates[j].flags) in ieee80211_sta_get_rates()
1559 brate = sband->bitrates[j].bitrate; in ieee80211_sta_get_rates()
2426 struct ieee80211_supported_band *sband; in ieee80211_ie_len_he_cap() local
2429 sband = ieee80211_get_sband(sdata); in ieee80211_ie_len_he_cap()
2430 if (!sband) in ieee80211_ie_len_he_cap()
2433 he_cap = ieee80211_get_he_iftype_cap_vif(sband, &sdata->vif); in ieee80211_ie_len_he_cap()
2495 const struct ieee80211_supported_band *sband, in ieee80211_put_he_cap() argument
2507 he_cap = ieee80211_get_he_iftype_cap_vif(sband, &sdata->vif); in ieee80211_put_he_cap()
2565 struct ieee80211_supported_band *sband; in ieee80211_put_he_6ghz_cap() local
2575 sband = sdata->local->hw.wiphy->bands[NL80211_BAND_6GHZ]; in ieee80211_put_he_6ghz_cap()
2577 iftd = ieee80211_get_sband_iftype_data(sband, iftype); in ieee80211_put_he_6ghz_cap()
3224 const struct ieee80211_supported_band *sband, in ieee80211_put_srates_elem() argument
3231 for (i = 0; i < sband->n_bitrates; i++) { in ieee80211_put_srates_elem()
3232 if ((rate_flags & sband->bitrates[i].flags) != rate_flags) in ieee80211_put_srates_elem()
3255 for (i = 0; i < sband->n_bitrates && rates; i++) { in ieee80211_put_srates_elem()
3259 if ((rate_flags & sband->bitrates[i].flags) != rate_flags) in ieee80211_put_srates_elem()
3271 rate = DIV_ROUND_UP(sband->bitrates[i].bitrate, 5); in ieee80211_put_srates_elem()
3439 struct ieee80211_supported_band *sband; in ieee80211_calculate_rx_timestamp() local
3441 sband = local->hw.wiphy->bands[status->band]; in ieee80211_calculate_rx_timestamp()
3442 ri.legacy = sband->bitrates[status->rate_idx].bitrate; in ieee80211_calculate_rx_timestamp()
4264 struct ieee80211_supported_band *sband; in ieee80211_ie_len_eht_cap() local
4268 sband = ieee80211_get_sband(sdata); in ieee80211_ie_len_eht_cap()
4269 if (!sband) in ieee80211_ie_len_eht_cap()
4272 he_cap = ieee80211_get_he_iftype_cap_vif(sband, &sdata->vif); in ieee80211_ie_len_eht_cap()
4273 eht_cap = ieee80211_get_eht_iftype_cap_vif(sband, &sdata->vif); in ieee80211_ie_len_eht_cap()
4291 const struct ieee80211_supported_band *sband, in ieee80211_put_eht_cap() argument
4295 ieee80211_get_he_iftype_cap_vif(sband, &sdata->vif); in ieee80211_put_eht_cap()
4297 ieee80211_get_eht_iftype_cap_vif(sband, &sdata->vif); in ieee80211_put_eht_cap()