projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rename patches-r3776 to patches-testing
[openwrt/svn-archive/archive.git]
/
package
/
madwifi
/
patches-testing
/
111-minstrel_crash.patch
diff --git a/package/madwifi/patches-testing/111-minstrel_crash.patch
b/package/madwifi/patches-testing/111-minstrel_crash.patch
new file mode 100644
(file)
index 0000000..
dd96c4e
--- /dev/null
+++ b/
package/madwifi/patches-testing/111-minstrel_crash.patch
@@ -0,0
+1,12
@@
+--- 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)