lkml.org 
[lkml]   [2022]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v1 2/2] mac80211: minstrel_ht: fill all requested rates
Date
+Felix

Peter Seiderer <ps.report@gmx.net> writes:

> Fill all requested rates (in case of ath9k 4 rate slots are
> available, so fill all 4 instead of only 3), improves throughput in
> noisy environment.

How did you test this? Could you quantify the gains in throughput you saw?

-Toke

> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> ---
> net/mac80211/rc80211_minstrel_ht.c | 14 +++++++-------
> 1 file changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/net/mac80211/rc80211_minstrel_ht.c b/net/mac80211/rc80211_minstrel_ht.c
> index 9c6ace858107..cd6a0f153688 100644
> --- a/net/mac80211/rc80211_minstrel_ht.c
> +++ b/net/mac80211/rc80211_minstrel_ht.c
> @@ -1436,17 +1436,17 @@ minstrel_ht_update_rates(struct minstrel_priv *mp, struct minstrel_ht_sta *mi)
> /* Start with max_tp_rate[0] */
> minstrel_ht_set_rate(mp, mi, rates, i++, mi->max_tp_rate[0]);
>
> - if (mp->hw->max_rates >= 3) {
> - /* At least 3 tx rates supported, use max_tp_rate[1] next */
> - minstrel_ht_set_rate(mp, mi, rates, i++, mi->max_tp_rate[1]);
> - }
> + /* Fill up remaining, keep one entry for max_probe_rate */
> + for (; i < (mp->hw->max_rates - 1); i++)
> + minstrel_ht_set_rate(mp, mi, rates, i, mi->max_tp_rate[i]);
>
> - if (mp->hw->max_rates >= 2) {
> + if (i < mp->hw->max_rates)
> minstrel_ht_set_rate(mp, mi, rates, i++, mi->max_prob_rate);
> - }
> +
> + if (i < IEEE80211_TX_RATE_TABLE_SIZE)
> + rates->rate[i].idx = -1;
>
> mi->sta->max_rc_amsdu_len = minstrel_ht_get_max_amsdu_len(mi);
> - rates->rate[i].idx = -1;
> rate_control_set_rates(mp->hw, mi->sta, rates);
> }
>
> --
> 2.35.1

\
 
 \ /
  Last update: 2022-04-05 00:26    [W:0.061 / U:0.744 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site