madwifi: add fragmentation fix from #4817
[openwrt.git] / package / madwifi / patches-upstream / 111-minstrel_crash.patch
1 Index: madwifi-0.9.4/ath_rate/minstrel/minstrel.c
2 ===================================================================
3 --- madwifi-0.9.4.old/ath_rate/minstrel/minstrel.c 2007-12-12 05:11:07.000000000 +0100
4 +++ madwifi-0.9.4/ath_rate/minstrel/minstrel.c 2008-07-24 15:15:41.000000000 +0200
5 @@ -394,6 +394,9 @@
6 int rc1, rc2, rc3; /* Index into the rate table, so for example, it is 0..11 */
7 int rixc1, rixc2, rixc3; /* The actual bit rate used */
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)
This page took 0.060387 seconds and 5 git commands to generate.