Lines Matching refs:sband

36 	struct ieee80211_supported_band *sband;  in rate_control_rate_init()  local
52 sband = local->hw.wiphy->bands[chanctx_conf->def.chan->band]; in rate_control_rate_init()
55 if (sband->band == NL80211_BAND_S1GHZ) { in rate_control_rate_init()
62 ref->ops->rate_init(ref->priv, sband, &chanctx_conf->def, ista, in rate_control_rate_init()
70 struct ieee80211_supported_band *sband, in rate_control_tx_status() argument
82 ref->ops->tx_status_ext(ref->priv, sband, priv_sta, st); in rate_control_tx_status()
84 ref->ops->tx_status(ref->priv, sband, st->sta, priv_sta, st->skb); in rate_control_tx_status()
92 struct ieee80211_supported_band *sband, in rate_control_rate_update() argument
110 ref->ops->rate_update(ref->priv, sband, &chanctx_conf->def, in rate_control_rate_update()
269 struct ieee80211_supported_band *sband; in ieee80211_check_rate_mask() local
286 sband = local->hw.wiphy->bands[band]; in ieee80211_check_rate_mask()
294 sdata->rc_rateidx_mask[band] = (1 << sband->n_bitrates) - 1; in ieee80211_check_rate_mask()
309 struct ieee80211_supported_band *sband) in rc_send_low_basicrate() argument
313 if (sband->band == NL80211_BAND_S1GHZ) { in rc_send_low_basicrate()
327 for (i = rate->idx + 1; i <= sband->n_bitrates; i++) { in rc_send_low_basicrate()
338 struct ieee80211_supported_band *sband, in __rate_control_send_low() argument
347 if (sband->band == NL80211_BAND_S1GHZ) { in __rate_control_send_low()
353 if ((sband->band == NL80211_BAND_2GHZ) && in __rate_control_send_low()
358 for (i = 0; i < sband->n_bitrates; i++) { in __rate_control_send_low()
362 if ((rate_flags & sband->bitrates[i].flags) != rate_flags) in __rate_control_send_low()
365 if (!rate_supported(sta, sband->band, i)) in __rate_control_send_low()
371 WARN_ONCE(i == sband->n_bitrates, in __rate_control_send_low()
374 sta ? sta->supp_rates[sband->band] : -1, in __rate_control_send_low()
375 sband->band, in __rate_control_send_low()
390 struct ieee80211_supported_band *sband = txrc->sband; in rate_control_send_low() local
396 __rate_control_send_low(txrc->hw, sband, pubsta, info, in rate_control_send_low()
400 mcast_rate = txrc->bss_conf->mcast_rate[sband->band]; in rate_control_send_low()
415 sband); in rate_control_send_low()
522 struct ieee80211_supported_band *sband, in rate_idx_match_mask() argument
549 if (rate_idx_match_legacy_mask(rate_idx, sband->n_bitrates, in rate_idx_match_mask()
563 if (rate_idx_match_legacy_mask(rate_idx, sband->n_bitrates, in rate_idx_match_mask()
568 if (rate_idx_match_legacy_mask(rate_idx, sband->n_bitrates, in rate_idx_match_mask()
607 struct ieee80211_supported_band *sband, in rate_fixup_ratelist() argument
629 rate = &sband->bitrates[rates[0].idx]; in rate_fixup_ratelist()
631 for (i = 0; i < sband->n_bitrates; i++) { in rate_fixup_ratelist()
636 if (sband->bitrates[i].bitrate > rate->bitrate) in rate_fixup_ratelist()
639 if (sband->bitrates[baserate].bitrate < in rate_fixup_ratelist()
640 sband->bitrates[i].bitrate) in rate_fixup_ratelist()
688 if (WARN_ON_ONCE(rates[i].idx >= sband->n_bitrates)) { in rate_fixup_ratelist()
693 rate = &sband->bitrates[rates[i].idx]; in rate_fixup_ratelist()
748 struct ieee80211_supported_band *sband, in rate_control_cap_mask() argument
755 *mask = sdata->rc_rateidx_mask[sband->band]; in rate_control_cap_mask()
757 for (i = 0; i < sband->n_bitrates; i++) { in rate_control_cap_mask()
758 if ((flags & sband->bitrates[i].flags) != flags) in rate_control_cap_mask()
762 if (*mask == (1 << sband->n_bitrates) - 1 && in rate_control_cap_mask()
763 !sdata->rc_has_mcs_mask[sband->band] && in rate_control_cap_mask()
764 !sdata->rc_has_vht_mcs_mask[sband->band]) in rate_control_cap_mask()
767 if (sdata->rc_has_mcs_mask[sband->band]) in rate_control_cap_mask()
768 memcpy(mcs_mask, sdata->rc_rateidx_mcs_mask[sband->band], in rate_control_cap_mask()
773 if (sdata->rc_has_vht_mcs_mask[sband->band]) in rate_control_cap_mask()
774 memcpy(vht_mask, sdata->rc_rateidx_vht_mcs_mask[sband->band], in rate_control_cap_mask()
784 *mask &= sta->supp_rates[sband->band]; in rate_control_cap_mask()
799 struct ieee80211_supported_band *sband, in rate_control_apply_mask_ratetbl() argument
808 if (!rate_control_cap_mask(sta->sdata, sband, &sta->sta, &mask, in rate_control_apply_mask_ratetbl()
818 sband, chan_width, mask, mcs_mask, in rate_control_apply_mask_ratetbl()
825 struct ieee80211_supported_band *sband, in rate_control_apply_mask() argument
840 if (!rate_control_cap_mask(sdata, sband, sta, &mask, mcs_mask, in rate_control_apply_mask()
856 rate_idx_match_mask(&rates[i].idx, &rate_flags, sband, in rate_control_apply_mask()
870 struct ieee80211_supported_band *sband; in ieee80211_get_tx_rates() local
878 sband = sdata->local->hw.wiphy->bands[info->band]; in ieee80211_get_tx_rates()
881 rate_control_apply_mask(sdata, sta, sband, dest, max_rates); in ieee80211_get_tx_rates()
884 __rate_control_send_low(&sdata->local->hw, sband, sta, info, in ieee80211_get_tx_rates()
888 rate_fixup_ratelist(vif, sband, info, dest, max_rates); in ieee80211_get_tx_rates()
941 struct ieee80211_supported_band *sband; in rate_control_set_rates() local
943 sband = ieee80211_get_sband(sta->sdata); in rate_control_set_rates()
944 if (!sband) in rate_control_set_rates()
946 rate_control_apply_mask_ratetbl(sta, sband, rates); in rate_control_set_rates()