From: Felix Fietkau Date: Fri, 16 Apr 2010 21:55:37 +0000 (+0000) Subject: mac80211: fix a minstrel_ht off-by-one bug (patch by Christian Lamparter) X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=ccd852dd851f98c108f4d824ca6a3caf51383780;p=openwrt%2Fstaging%2Fdedeckeh.git mac80211: fix a minstrel_ht off-by-one bug (patch by Christian Lamparter) SVN-Revision: 20950 --- 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;