mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-20 17:32:57 +00:00
mac80211: fix a minstrel_ht off-by-one bug (patch by Christian Lamparter)
SVN-Revision: 20950
This commit is contained in:
parent
54e9e802c4
commit
ccd852dd85
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user