Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH 1/4] mac80211: minstrel_ht: fix per-group max throughput rate initialization
@ 2019-08-20  9:54 Felix Fietkau
  2019-08-20  9:54 ` [PATCH 2/4] mac80211: minstrel_ht: reduce unnecessary rate probing attempts Felix Fietkau
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Felix Fietkau @ 2019-08-20  9:54 UTC (permalink / raw)
  To: linux-wireless; +Cc: johannes

The group number needs to be multiplied by the number of rates per group
to get the full rate index

Fixes: 5935839ad73583 ("mac80211: improve minstrel_ht rate sorting by throughput & probability")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
 net/mac80211/rc80211_minstrel_ht.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/mac80211/rc80211_minstrel_ht.c b/net/mac80211/rc80211_minstrel_ht.c
index 5a882da82f0e..ba230b037257 100644
--- a/net/mac80211/rc80211_minstrel_ht.c
+++ b/net/mac80211/rc80211_minstrel_ht.c
@@ -575,7 +575,7 @@ minstrel_ht_update_stats(struct minstrel_priv *mp, struct minstrel_ht_sta *mi)
 
 		/* (re)Initialize group rate indexes */
 		for(j = 0; j < MAX_THR_RATES; j++)
-			tmp_group_tp_rate[j] = group;
+			tmp_group_tp_rate[j] = MCS_GROUP_RATES * group;
 
 		for (i = 0; i < MCS_GROUP_RATES; i++) {
 			if (!(mi->supported[group] & BIT(i)))
-- 
2.17.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-08-20  9:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-20  9:54 [PATCH 1/4] mac80211: minstrel_ht: fix per-group max throughput rate initialization Felix Fietkau
2019-08-20  9:54 ` [PATCH 2/4] mac80211: minstrel_ht: reduce unnecessary rate probing attempts Felix Fietkau
2019-08-20  9:54 ` [PATCH 3/4] mac80211: minstrel_ht: fix default max throughput rate indexes Felix Fietkau
2019-08-20  9:54 ` [PATCH 4/4] mac80211: minstrel_ht: improve rate probing for devices with static fallback Felix Fietkau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox