Lines Matching refs:sband

37 	struct ieee80211_supported_band *sband;
53 sband = local->hw.wiphy->bands[chanctx_conf->def.chan->band];
56 if (sband->band == NL80211_BAND_S1GHZ) {
63 ref->ops->rate_init(ref->priv, sband, &chanctx_conf->def, ista,
76 struct ieee80211_supported_band *sband;
81 sband = local->hw.wiphy->bands[st->info->band];
85 ref->ops->tx_status_ext(ref->priv, sband, priv_sta, st);
87 ref->ops->tx_status(ref->priv, sband, st->sta, priv_sta, st->skb);
95 struct ieee80211_supported_band *sband,
116 ref->ops->rate_update(ref->priv, sband, &chanctx_conf->def,
278 struct ieee80211_supported_band *sband;
295 sband = local->hw.wiphy->bands[band];
303 sdata->rc_rateidx_mask[band] = (1 << sband->n_bitrates) - 1;
318 struct ieee80211_supported_band *sband)
322 if (sband->band == NL80211_BAND_S1GHZ) {
336 for (i = rate->idx + 1; i <= sband->n_bitrates; i++) {
347 struct ieee80211_supported_band *sband,
356 if (sband->band == NL80211_BAND_S1GHZ) {
362 if ((sband->band == NL80211_BAND_2GHZ) &&
367 for (i = 0; i < sband->n_bitrates; i++) {
371 if ((rate_flags & sband->bitrates[i].flags) != rate_flags)
374 if (!rate_supported(sta, sband->band, i))
380 WARN_ONCE(i == sband->n_bitrates,
383 sta ? sta->deflink.supp_rates[sband->band] : -1,
384 sband->band,
399 struct ieee80211_supported_band *sband = txrc->sband;
405 __rate_control_send_low(txrc->hw, sband, pubsta, info,
409 mcast_rate = txrc->bss_conf->mcast_rate[sband->band];
424 sband);
531 struct ieee80211_supported_band *sband,
558 if (rate_idx_match_legacy_mask(rate_idx, sband->n_bitrates,
572 if (rate_idx_match_legacy_mask(rate_idx, sband->n_bitrates,
577 if (rate_idx_match_legacy_mask(rate_idx, sband->n_bitrates,
616 struct ieee80211_supported_band *sband,
638 rate = &sband->bitrates[rates[0].idx];
640 for (i = 0; i < sband->n_bitrates; i++) {
645 if (sband->bitrates[i].bitrate > rate->bitrate)
648 if (sband->bitrates[baserate].bitrate <
649 sband->bitrates[i].bitrate)
697 if (WARN_ON_ONCE(rates[i].idx >= sband->n_bitrates)) {
702 rate = &sband->bitrates[rates[i].idx];
757 struct ieee80211_supported_band *sband,
764 *mask = sdata->rc_rateidx_mask[sband->band];
766 for (i = 0; i < sband->n_bitrates; i++) {
767 if ((flags & sband->bitrates[i].flags) != flags)
771 if (*mask == (1 << sband->n_bitrates) - 1 &&
772 !sdata->rc_has_mcs_mask[sband->band] &&
773 !sdata->rc_has_vht_mcs_mask[sband->band])
776 if (sdata->rc_has_mcs_mask[sband->band])
777 memcpy(mcs_mask, sdata->rc_rateidx_mcs_mask[sband->band],
782 if (sdata->rc_has_vht_mcs_mask[sband->band])
783 memcpy(vht_mask, sdata->rc_rateidx_vht_mcs_mask[sband->band],
793 *mask &= sta->deflink.supp_rates[sband->band];
808 struct ieee80211_supported_band *sband,
817 if (!rate_control_cap_mask(sta->sdata, sband, &sta->sta, &mask,
827 sband, chan_width, mask, mcs_mask,
834 struct ieee80211_supported_band *sband,
849 if (!rate_control_cap_mask(sdata, sband, sta, &mask, mcs_mask,
865 rate_idx_match_mask(&rates[i].idx, &rate_flags, sband,
879 struct ieee80211_supported_band *sband;
887 sband = sdata->local->hw.wiphy->bands[info->band];
890 rate_control_apply_mask(sdata, sta, sband, dest, max_rates);
893 __rate_control_send_low(&sdata->local->hw, sband, sta, info,
897 rate_fixup_ratelist(vif, sband, info, dest, max_rates);
950 struct ieee80211_supported_band *sband;
952 sband = ieee80211_get_sband(sta->sdata);
953 if (!sband)
955 rate_control_apply_mask_ratetbl(sta, sband, rates);