mac80211: fix a minstrel_ht off-by-one bug (patch by Christian Lamparter)
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 16 Apr 2010 21:55:37 +0000 (21:55 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 16 Apr 2010 21:55:37 +0000 (21:55 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20950 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/mac80211/patches/530-minstrel_ht.patch

index c51d541..c1af998 100644 (file)
 +              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;
This page took 0.021685 seconds and 4 git commands to generate.