• Home
  • Raw
  • Download

Lines Matching refs:rates

352 		info->control.rates[0].flags |= IEEE80211_TX_RC_S1G_MCS;  in __rate_control_send_low()
353 info->control.rates[0].idx = 0; in __rate_control_send_low()
361 info->control.rates[0].idx = 0; in __rate_control_send_low()
372 info->control.rates[0].idx = i; in __rate_control_send_low()
382 info->control.rates[0].count = in __rate_control_send_low()
406 info->control.rates[0].idx = mcast_rate - 1; in rate_control_send_low()
417 rc_send_low_basicrate(&info->control.rates[0], in rate_control_send_low()
613 struct ieee80211_tx_rate *rates, in rate_fixup_ratelist() argument
628 if (!(rates[0].flags & in rate_fixup_ratelist()
633 rate = &sband->bitrates[rates[0].idx]; in rate_fixup_ratelist()
658 rates[i].idx = -1; in rate_fixup_ratelist()
661 if (rates[i].idx < 0) { in rate_fixup_ratelist()
670 if (rates[i].flags & IEEE80211_TX_RC_MCS) { in rate_fixup_ratelist()
671 WARN_ON(rates[i].idx > 76); in rate_fixup_ratelist()
673 if (!(rates[i].flags & IEEE80211_TX_RC_USE_RTS_CTS) && in rate_fixup_ratelist()
675 rates[i].flags |= in rate_fixup_ratelist()
680 if (rates[i].flags & IEEE80211_TX_RC_VHT_MCS) { in rate_fixup_ratelist()
681 WARN_ON(ieee80211_rate_get_vht_mcs(&rates[i]) > 9); in rate_fixup_ratelist()
687 rates[i].flags |= IEEE80211_TX_RC_USE_RTS_CTS; in rate_fixup_ratelist()
692 if (WARN_ON_ONCE(rates[i].idx >= sband->n_bitrates)) { in rate_fixup_ratelist()
693 rates[i].idx = -1; in rate_fixup_ratelist()
697 rate = &sband->bitrates[rates[i].idx]; in rate_fixup_ratelist()
702 rates[i].flags |= IEEE80211_TX_RC_USE_SHORT_PREAMBLE; in rate_fixup_ratelist()
705 if (!(rates[i].flags & IEEE80211_TX_RC_USE_RTS_CTS) && in rate_fixup_ratelist()
708 rates[i].flags |= IEEE80211_TX_RC_USE_CTS_PROTECT; in rate_fixup_ratelist()
715 struct ieee80211_tx_rate *rates, in rate_control_fill_sta_table() argument
722 ratetbl = rcu_dereference(sta->rates); in rate_control_fill_sta_table()
727 if (i < ARRAY_SIZE(info->control.rates) && in rate_control_fill_sta_table()
728 info->control.rates[i].idx >= 0 && in rate_control_fill_sta_table()
729 info->control.rates[i].count) { in rate_control_fill_sta_table()
730 if (rates != info->control.rates) in rate_control_fill_sta_table()
731 rates[i] = info->control.rates[i]; in rate_control_fill_sta_table()
733 rates[i].idx = ratetbl->rate[i].idx; in rate_control_fill_sta_table()
734 rates[i].flags = ratetbl->rate[i].flags; in rate_control_fill_sta_table()
736 rates[i].count = ratetbl->rate[i].count_rts; in rate_control_fill_sta_table()
738 rates[i].count = ratetbl->rate[i].count_cts; in rate_control_fill_sta_table()
740 rates[i].count = ratetbl->rate[i].count; in rate_control_fill_sta_table()
742 rates[i].idx = -1; in rate_control_fill_sta_table()
743 rates[i].count = 0; in rate_control_fill_sta_table()
746 if (rates[i].idx < 0 || !rates[i].count) in rate_control_fill_sta_table()
804 struct ieee80211_sta_rates *rates) in rate_control_apply_mask_ratetbl() argument
818 if (rates->rate[i].idx < 0) in rate_control_apply_mask_ratetbl()
821 rate_idx_match_mask(&rates->rate[i].idx, &rates->rate[i].flags, in rate_control_apply_mask_ratetbl()
830 struct ieee80211_tx_rate *rates, in rate_control_apply_mask() argument
856 if (rates[i].idx < 0) in rate_control_apply_mask()
859 rate_flags = rates[i].flags; in rate_control_apply_mask()
860 rate_idx_match_mask(&rates[i].idx, &rate_flags, sband, in rate_control_apply_mask()
862 rates[i].flags = rate_flags; in rate_control_apply_mask()
908 info->control.rates[i].idx = -1; in rate_control_get_rate()
909 info->control.rates[i].flags = 0; in rate_control_get_rate()
910 info->control.rates[i].count = 0; in rate_control_get_rate()
936 info->control.rates, in rate_control_get_rate()
937 ARRAY_SIZE(info->control.rates)); in rate_control_get_rate()
942 struct ieee80211_sta_rates *rates) in rate_control_set_rates() argument
951 rate_control_apply_mask_ratetbl(sta, sband, rates); in rate_control_set_rates()
958 old = rcu_dereference_protected(pubsta->rates, true); in rate_control_set_rates()
959 rcu_assign_pointer(pubsta->rates, rates); in rate_control_set_rates()