1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-24 22:06:31 +02:00

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
This commit is contained in:
nbd 2010-04-16 21:55:37 +00:00
parent 12e2e1e523
commit 3894641d99

View File

@ -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;