refreshed madwifi patches
[openwrt-10.03/.git] / package / madwifi / patches / 131-minstrel_rateidx.patch
1 Index: madwifi-ng-r2568-20070710/ath_rate/minstrel/minstrel.c
2 ===================================================================
3 --- madwifi-ng-r2568-20070710.orig/ath_rate/minstrel/minstrel.c 2007-10-20 20:52:09.000000000 +0200
4 +++ madwifi-ng-r2568-20070710/ath_rate/minstrel/minstrel.c      2007-10-20 20:52:46.000000000 +0200
5 @@ -675,6 +675,12 @@
6                 }
7  
8                 for (x = 0; x < ni->ni_rates.rs_nrates; x++) {
9 +                       if (sn->rates[x].rix == 0xff) {
10 +                               DPRINTF(sc, "%s: %s ignore bogus rix at %d\n",
11 +                                       dev_info, __func__, x);
12 +                               continue;
13 +                       }
14 +
15                         sn->rs_rateattempts     [x] = 0;
16                         sn->rs_thisprob         [x] = 0;
17                         sn->rs_ratesuccess      [x] = 0;