aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-04-16 21:55:37 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-04-16 21:55:37 +0000
commite72ad044484ba09ce426cbfd9da142ad8e1f1065 (patch)
tree8a61e215ab614293b31f18930765c6b02e501b47 /package/mac80211/patches
parent42bb6302d435cd13f776c9889e417ebadba2618c (diff)
downloadupstream-e72ad044484ba09ce426cbfd9da142ad8e1f1065.tar.gz
upstream-e72ad044484ba09ce426cbfd9da142ad8e1f1065.tar.bz2
upstream-e72ad044484ba09ce426cbfd9da142ad8e1f1065.zip
mac80211: fix a minstrel_ht off-by-one bug (patch by Christian Lamparter)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20950 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches')
-rw-r--r--package/mac80211/patches/530-minstrel_ht.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/mac80211/patches/530-minstrel_ht.patch b/package/mac80211/patches/530-minstrel_ht.patch
index c51d541fbb..c1af99865e 100644
--- a/package/mac80211/patches/530-minstrel_ht.patch
+++ b/package/mac80211/patches/530-minstrel_ht.patch
@@ -389,9 +389,9 @@
+ if (!mg->supported)
+ continue;
+
-+ if (++mg->index > MCS_GROUP_RATES) {
++ if (++mg->index >= MCS_GROUP_RATES) {
+ mg->index = 0;
-+ if (++mg->column > ARRAY_SIZE(sample_table))
++ if (++mg->column >= ARRAY_SIZE(sample_table))
+ mg->column = 0;
+ }
+ break;