1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Fri, 14 Jun 2019 21:12:04 +0200
3 Subject: [PATCH] mac80211: minstrel_ht: fix per-group max throughput rate
6 The group number needs to be multiplied by the number of rates per group
7 to get the full rate index
9 Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 --- a/net/mac80211/rc80211_minstrel_ht.c
13 +++ b/net/mac80211/rc80211_minstrel_ht.c
14 @@ -542,7 +542,7 @@ minstrel_ht_update_stats(struct minstrel
16 /* (re)Initialize group rate indexes */
17 for(j = 0; j < MAX_THR_RATES; j++)
18 - tmp_group_tp_rate[j] = group;
19 + tmp_group_tp_rate[j] = MCS_GROUP_RATES * group;
21 for (i = 0; i < MCS_GROUP_RATES; i++) {
22 if (!(mi->supported[group] & BIT(i)))