Lines Matching refs:sband

211 	struct ieee80211_supported_band *sband;
213 sband = local->hw.wiphy->bands[frame_txctl->band];
217 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx];
230 dur = ieee80211_frame_duration(sband->band, 10, bitrate,
233 dur += ieee80211_frame_duration(sband->band, frame_len, bitrate,
236 dur += ieee80211_frame_duration(sband->band, 10, bitrate,
254 struct ieee80211_supported_band *sband;
256 sband = local->hw.wiphy->bands[frame_txctl->band];
260 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx];
272 dur = ieee80211_frame_duration(sband->band, frame_len, bitrate,
276 dur += ieee80211_frame_duration(sband->band, 10, bitrate,
1201 struct ieee80211_supported_band *sband;
1209 sband = local->hw.wiphy->bands[band];
1210 if (WARN_ON_ONCE(!sband))
1217 return ieee80211_put_s1g_cap(skb, &sband->s1g_cap);
1219 err = ieee80211_put_srates_elem(skb, sband, 0, rate_flags,
1241 err = ieee80211_put_srates_elem(skb, sband, 0, rate_flags,
1246 if (chandef->chan && sband->band == NL80211_BAND_2GHZ) {
1277 if (sband->ht_cap.ht_supported) {
1284 ieee80211_ie_build_ht_cap(pos, &sband->ht_cap,
1285 sband->ht_cap.cap);
1312 /* Check if any channel in this sband supports at least 80 MHz */
1313 for (i = 0; i < sband->n_channels; i++) {
1314 if (sband->channels[i].flags & (IEEE80211_CHAN_DISABLED |
1322 if (sband->vht_cap.vht_supported && have_80mhz) {
1329 ieee80211_ie_build_vht_cap(pos, &sband->vht_cap,
1330 sband->vht_cap.cap);
1353 if (cfg80211_any_usable_channels(local->hw.wiphy, BIT(sband->band),
1355 err = ieee80211_put_he_cap(skb, sdata, sband, NULL);
1360 if (cfg80211_any_usable_channels(local->hw.wiphy, BIT(sband->band),
1363 err = ieee80211_put_eht_cap(skb, sdata, sband, NULL);
1520 struct ieee80211_supported_band *sband;
1525 sband = sdata->local->hw.wiphy->bands[band];
1526 if (WARN_ON(!sband))
1532 num_rates = sband->n_bitrates;
1552 if ((rate_flags & sband->bitrates[j].flags)
1556 brate = sband->bitrates[j].bitrate;
2410 struct ieee80211_supported_band *sband;
2413 sband = ieee80211_get_sband(sdata);
2414 if (!sband)
2417 he_cap = ieee80211_get_he_iftype_cap_vif(sband, &sdata->vif);
2479 const struct ieee80211_supported_band *sband,
2491 he_cap = ieee80211_get_he_iftype_cap_vif(sband, &sdata->vif);
2549 struct ieee80211_supported_band *sband;
2559 sband = sdata->local->hw.wiphy->bands[NL80211_BAND_6GHZ];
2561 iftd = ieee80211_get_sband_iftype_data(sband, iftype);
3201 const struct ieee80211_supported_band *sband,
3208 for (i = 0; i < sband->n_bitrates; i++) {
3209 if ((rate_flags & sband->bitrates[i].flags) != rate_flags)
3232 for (i = 0; i < sband->n_bitrates && rates; i++) {
3236 if ((rate_flags & sband->bitrates[i].flags) != rate_flags)
3248 rate = DIV_ROUND_UP(sband->bitrates[i].bitrate, 5);
3416 struct ieee80211_supported_band *sband;
3418 sband = local->hw.wiphy->bands[status->band];
3419 ri.legacy = sband->bitrates[status->rate_idx].bitrate;
4185 struct ieee80211_supported_band *sband;
4189 sband = ieee80211_get_sband(sdata);
4190 if (!sband)
4193 he_cap = ieee80211_get_he_iftype_cap_vif(sband, &sdata->vif);
4194 eht_cap = ieee80211_get_eht_iftype_cap_vif(sband, &sdata->vif);
4212 const struct ieee80211_supported_band *sband,
4216 ieee80211_get_he_iftype_cap_vif(sband, &sdata->vif);
4218 ieee80211_get_eht_iftype_cap_vif(sband, &sdata->vif);