summaryrefslogtreecommitdiff
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
commitccd852dd851f98c108f4d824ca6a3caf51383780 (patch)
tree680cb75a3b779b1778414f9b86d0b7e3c579ec49
parent54e9e802c429421d4ab69214b4fb2ad146163dcf (diff)
downloadmtk-20170518-ccd852dd851f98c108f4d824ca6a3caf51383780.zip
mtk-20170518-ccd852dd851f98c108f4d824ca6a3caf51383780.tar.gz
mtk-20170518-ccd852dd851f98c108f4d824ca6a3caf51383780.tar.bz2
mac80211: fix a minstrel_ht off-by-one bug (patch by Christian Lamparter)
SVN-Revision: 20950
-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 c51d541..c1af998 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;