From 3894641d99e63a69ec672635e5bcb2321d9aafca Mon Sep 17 00:00:00 2001 From: nbd Date: Fri, 16 Apr 2010 21:55:37 +0000 Subject: [PATCH] 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 --- package/mac80211/patches/530-minstrel_ht.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/mac80211/patches/530-minstrel_ht.patch b/package/mac80211/patches/530-minstrel_ht.patch index c51d541fb..c1af99865 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; -- 2.20.1