Lines Matching defs:sband
216 struct ieee80211_supported_band *sband;
218 sband = local->hw.wiphy->bands[frame_txctl->band];
222 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx];
236 dur = ieee80211_frame_duration(sband->band, 10, bitrate,
239 dur += ieee80211_frame_duration(sband->band, frame_len, bitrate,
242 dur += ieee80211_frame_duration(sband->band, 10, bitrate,
260 struct ieee80211_supported_band *sband;
262 sband = local->hw.wiphy->bands[frame_txctl->band];
266 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx];
279 dur = ieee80211_frame_duration(sband->band, frame_len, bitrate,
283 dur += ieee80211_frame_duration(sband->band, 10, bitrate,
1936 struct ieee80211_supported_band *sband;
1951 sband = local->hw.wiphy->bands[band];
1952 if (WARN_ON_ONCE(!sband))
1962 pos = ieee80211_ie_build_s1g_cap(pos, &sband->s1g_cap);
1967 for (i = 0; i < sband->n_bitrates; i++) {
1970 if ((rate_flags & sband->bitrates[i].flags) != rate_flags)
1974 (u8) DIV_ROUND_UP(sband->bitrates[i].bitrate,
2015 if (chandef->chan && sband->band == NL80211_BAND_2GHZ) {
2047 if (sband->ht_cap.ht_supported) {
2050 pos = ieee80211_ie_build_ht_cap(pos, &sband->ht_cap,
2051 sband->ht_cap.cap);
2079 /* Check if any channel in this sband supports at least 80 MHz */
2080 for (i = 0; i < sband->n_channels; i++) {
2081 if (sband->channels[i].flags & (IEEE80211_CHAN_DISABLED |
2089 if (sband->vht_cap.vht_supported && have_80mhz) {
2092 pos = ieee80211_ie_build_vht_cap(pos, &sband->vht_cap,
2093 sband->vht_cap.cap);
2117 he_cap = ieee80211_get_he_iftype_cap_vif(sband, &sdata->vif);
2119 cfg80211_any_usable_channels(local->hw.wiphy, BIT(sband->band),
2126 eht_cap = ieee80211_get_eht_iftype_cap_vif(sband, &sdata->vif);
2129 cfg80211_any_usable_channels(local->hw.wiphy, BIT(sband->band),
2265 struct ieee80211_supported_band *sband;
2270 sband = sdata->local->hw.wiphy->bands[band];
2271 if (WARN_ON(!sband))
2277 num_rates = sband->n_bitrates;
2297 if ((rate_flags & sband->bitrates[j].flags)
2301 brate = DIV_ROUND_UP(sband->bitrates[j].bitrate,
3180 struct ieee80211_supported_band *sband;
3183 sband = ieee80211_get_sband(sdata);
3184 if (!sband)
3187 he_cap = ieee80211_get_he_iftype_cap(sband, iftype);
3285 struct ieee80211_supported_band *sband;
3296 sband = sdata->local->hw.wiphy->bands[NL80211_BAND_6GHZ];
3298 iftd = ieee80211_get_sband_iftype_data(sband, iftype);
3838 struct ieee80211_supported_band *sband;
3852 sband = local->hw.wiphy->bands[NL80211_BAND_6GHZ];
3854 he_cap = ieee80211_get_he_iftype_cap(sband, iftype);
3856 sdata_info(sdata, "Missing iftype sband data/HE cap");
3875 eht_cap = ieee80211_get_eht_iftype_cap(sband, iftype);
4011 const struct ieee80211_supported_band *sband,
4024 for (j = 0; j < sband->n_bitrates; j++) {
4025 br = &sband->bitrates[j];
4045 struct ieee80211_supported_band *sband;
4053 sband = local->hw.wiphy->bands[band];
4055 for (i = 0; i < sband->n_bitrates; i++) {
4056 if ((rate_flags & sband->bitrates[i].flags) != rate_flags)
4071 if ((rate_flags & sband->bitrates[i].flags) != rate_flags)
4076 rate = DIV_ROUND_UP(sband->bitrates[i].bitrate,
4089 struct ieee80211_supported_band *sband;
4098 sband = local->hw.wiphy->bands[band];
4100 for (i = 0; i < sband->n_bitrates; i++) {
4101 if ((rate_flags & sband->bitrates[i].flags) != rate_flags)
4118 for (i = 8; i < sband->n_bitrates; i++) {
4120 if ((rate_flags & sband->bitrates[i].flags)
4125 rate = DIV_ROUND_UP(sband->bitrates[i].bitrate,
4284 struct ieee80211_supported_band *sband;
4297 sband = local->hw.wiphy->bands[status->band];
4298 bitrate = sband->bitrates[status->rate_idx].bitrate;
5052 struct ieee80211_supported_band *sband;
5056 sband = ieee80211_get_sband(sdata);
5057 if (!sband)
5060 he_cap = ieee80211_get_he_iftype_cap(sband, iftype);
5061 eht_cap = ieee80211_get_eht_iftype_cap(sband, iftype);