huge madwifi update (work in progress, disabled by default, compiles but breaks at...
[openwrt.git] / package / madwifi / patches-r3776 / 111-minstrel_crash.patch
1 Index: madwifi-trunk-r3776/ath_rate/minstrel/minstrel.c
2 ===================================================================
3 --- madwifi-trunk-r3776.orig/ath_rate/minstrel/minstrel.c       2008-07-17 00:35:59.000000000 +0200
4 +++ madwifi-trunk-r3776/ath_rate/minstrel/minstrel.c    2008-07-17 00:47:36.000000000 +0200
5 @@ -415,6 +415,9 @@
6                         return;
7                 }
8  
9 +               if (sn->num_rates <= 0)
10 +                       return;
11 +
12                 if (sn->is_sampling) {
13                         sn->is_sampling = 0;
14                         if (sn->rs_sample_rate_slower)