Lines Matching refs:sband

36 	struct ieee80211_supported_band *sband;
52 sband = local->hw.wiphy->bands[chanctx_conf->def.chan->band];
55 if (sband->band == NL80211_BAND_S1GHZ) {
62 ref->ops->rate_init(ref->priv, sband, &chanctx_conf->def, ista,
70 struct ieee80211_supported_band *sband,
82 ref->ops->tx_status_ext(ref->priv, sband, priv_sta, st);
84 ref->ops->tx_status(ref->priv, sband, st->sta, priv_sta, st->skb);
92 struct ieee80211_supported_band *sband,
110 ref->ops->rate_update(ref->priv, sband, &chanctx_conf->def,
269 struct ieee80211_supported_band *sband;
286 sband = local->hw.wiphy->bands[band];
294 sdata->rc_rateidx_mask[band] = (1 << sband->n_bitrates) - 1;
313 struct ieee80211_supported_band *sband)
317 if (sband->band == NL80211_BAND_S1GHZ) {
331 for (i = rate->idx + 1; i <= sband->n_bitrates; i++) {
342 struct ieee80211_supported_band *sband,
351 if (sband->band == NL80211_BAND_S1GHZ) {
357 if ((sband->band == NL80211_BAND_2GHZ) &&
362 for (i = 0; i < sband->n_bitrates; i++) {
366 if ((rate_flags & sband->bitrates[i].flags) != rate_flags)
369 if (!rate_supported(sta, sband->band, i))
375 WARN_ONCE(i == sband->n_bitrates,
378 sta ? sta->supp_rates[sband->band] : -1,
379 sband->band,
394 struct ieee80211_supported_band *sband = txrc->sband;
400 __rate_control_send_low(txrc->hw, sband, pubsta, info,
404 mcast_rate = txrc->bss_conf->mcast_rate[sband->band];
419 sband);
526 struct ieee80211_supported_band *sband,
553 if (rate_idx_match_legacy_mask(rate_idx, sband->n_bitrates,
567 if (rate_idx_match_legacy_mask(rate_idx, sband->n_bitrates,
572 if (rate_idx_match_legacy_mask(rate_idx, sband->n_bitrates,
611 struct ieee80211_supported_band *sband,
633 rate = &sband->bitrates[rates[0].idx];
635 for (i = 0; i < sband->n_bitrates; i++) {
640 if (sband->bitrates[i].bitrate > rate->bitrate)
643 if (sband->bitrates[baserate].bitrate <
644 sband->bitrates[i].bitrate)
692 if (WARN_ON_ONCE(rates[i].idx >= sband->n_bitrates)) {
697 rate = &sband->bitrates[rates[i].idx];
752 struct ieee80211_supported_band *sband,
759 *mask = sdata->rc_rateidx_mask[sband->band];
761 for (i = 0; i < sband->n_bitrates; i++) {
762 if ((flags & sband->bitrates[i].flags) != flags)
766 if (*mask == (1 << sband->n_bitrates) - 1 &&
767 !sdata->rc_has_mcs_mask[sband->band] &&
768 !sdata->rc_has_vht_mcs_mask[sband->band])
771 if (sdata->rc_has_mcs_mask[sband->band])
772 memcpy(mcs_mask, sdata->rc_rateidx_mcs_mask[sband->band],
777 if (sdata->rc_has_vht_mcs_mask[sband->band])
778 memcpy(vht_mask, sdata->rc_rateidx_vht_mcs_mask[sband->band],
788 *mask &= sta->supp_rates[sband->band];
803 struct ieee80211_supported_band *sband,
812 if (!rate_control_cap_mask(sta->sdata, sband, &sta->sta, &mask,
822 sband, chan_width, mask, mcs_mask,
829 struct ieee80211_supported_band *sband,
844 if (!rate_control_cap_mask(sdata, sband, sta, &mask, mcs_mask,
860 rate_idx_match_mask(&rates[i].idx, &rate_flags, sband,
875 struct ieee80211_supported_band *sband;
883 sband = sdata->local->hw.wiphy->bands[info->band];
886 rate_control_apply_mask(sdata, sta, sband, dest, max_rates);
889 __rate_control_send_low(&sdata->local->hw, sband, sta, info,
893 rate_fixup_ratelist(vif, sband, info, dest, max_rates);
946 struct ieee80211_supported_band *sband;
948 sband = ieee80211_get_sband(sta->sdata);
949 if (!sband)
951 rate_control_apply_mask_ratetbl(sta, sband, rates);