Backported r12989 for 8.09
[openwrt/svn-archive/archive.git] / package / madwifi / patches-testing / 111-minstrel_crash.patch
1 --- a/ath_rate/minstrel/minstrel.c
2 +++ b/ath_rate/minstrel/minstrel.c
3 @@ -415,6 +415,9 @@
4 return;
5 }
6
7 + if (sn->num_rates <= 0)
8 + return;
9 +
10 if (sn->is_sampling) {
11 sn->is_sampling = 0;
12 if (sn->rs_sample_rate_slower)