aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/subsys/313-mac80211-minstrel_ht-fix-per-group-max-throughput-ra.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2019-06-14 21:32:15 +0200
committerFelix Fietkau <nbd@nbd.name>2019-08-26 16:27:30 +0200
commit1a1a504a54fc338f65b57d309714e399e4ae84ec (patch)
tree2830cebd20c62299d82e5208d7e516b234f7118c /package/kernel/mac80211/patches/subsys/313-mac80211-minstrel_ht-fix-per-group-max-throughput-ra.patch
parent8bf8de95a20d9fee54bbd579832c578c62cbc901 (diff)
downloadupstream-1a1a504a54fc338f65b57d309714e399e4ae84ec.tar.gz
upstream-1a1a504a54fc338f65b57d309714e399e4ae84ec.tar.bz2
upstream-1a1a504a54fc338f65b57d309714e399e4ae84ec.zip
mac80211: add new minstrel_ht patches to improve probing on mt76x2
Also include follow-up regression fix from master Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry-picked from commits 9861050b85e5 and f0992d7a309f)
Diffstat (limited to 'package/kernel/mac80211/patches/subsys/313-mac80211-minstrel_ht-fix-per-group-max-throughput-ra.patch')
-rw-r--r--package/kernel/mac80211/patches/subsys/313-mac80211-minstrel_ht-fix-per-group-max-throughput-ra.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/subsys/313-mac80211-minstrel_ht-fix-per-group-max-throughput-ra.patch b/package/kernel/mac80211/patches/subsys/313-mac80211-minstrel_ht-fix-per-group-max-throughput-ra.patch
new file mode 100644
index 0000000000..5ae29918e7
--- /dev/null
+++ b/package/kernel/mac80211/patches/subsys/313-mac80211-minstrel_ht-fix-per-group-max-throughput-ra.patch
@@ -0,0 +1,22 @@
+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)))