mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 01:28:59 +00:00
1a1a504a54
Also include follow-up regression fix from master Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry-picked from commits9861050b85
andf0992d7a30
)
23 lines
713 B
Diff
23 lines
713 B
Diff
From: Felix Fietkau <nbd@nbd.name>
|
|
Date: Fri, 14 Jun 2019 21:12:04 +0200
|
|
Subject: [PATCH] mac80211: minstrel_ht: fix per-group max throughput rate
|
|
initialization
|
|
|
|
The group number needs to be multiplied by the number of rates per group
|
|
to get the full rate index
|
|
|
|
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|
---
|
|
|
|
--- a/net/mac80211/rc80211_minstrel_ht.c
|
|
+++ b/net/mac80211/rc80211_minstrel_ht.c
|
|
@@ -542,7 +542,7 @@ minstrel_ht_update_stats(struct minstrel
|
|
|
|
/* (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)))
|