Openwrt/package/madwifi/patches-testing/111-minstrel_crash.patch
Felix Fietkau 9dc4917da8 rename patches-r3776 to patches-testing
SVN-Revision: 11868
2008-07-18 22:57:30 +00:00

13 lines
236 B
Diff

--- a/ath_rate/minstrel/minstrel.c
+++ b/ath_rate/minstrel/minstrel.c
@@ -415,6 +415,9 @@
return;
}
+ if (sn->num_rates <= 0)
+ return;
+
if (sn->is_sampling) {
sn->is_sampling = 0;
if (sn->rs_sample_rate_slower)