d971d84178568543410f4fe4fef62d3a6ea21fdf
[openwrt/staging/noltari.git] /
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
4 initialization
5
6 The group number needs to be multiplied by the number of rates per group
7 to get the full rate index
8
9 Signed-off-by: Felix Fietkau <nbd@nbd.name>
10 ---
11
12 --- a/net/mac80211/rc80211_minstrel_ht.c
13 +++ b/net/mac80211/rc80211_minstrel_ht.c
14 @@ -575,7 +575,7 @@ minstrel_ht_update_stats(struct minstrel
15
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;
20
21 for (i = 0; i < MCS_GROUP_RATES; i++) {
22 if (!(mi->supported[group] & BIT(i)))