diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-07-31 17:27:55 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-07-31 17:27:55 +0000 |
commit | 0270f3b748fd48acb016351f572ecf11e963f87c (patch) | |
tree | e5f860cbe4a61f6a7c2b47f582d982b9b04511d2 /package/madwifi/patches-upstream/111-minstrel_crash.patch | |
parent | 76c7f83e598b09201cdccbeaa721613441f7e0c4 (diff) |
madwifi: add 0.9.4 madwifi as a menuconfig option, as requested in some mails/tickets
untested, does not work with 2.6.26
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12047 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/patches-upstream/111-minstrel_crash.patch')
-rw-r--r-- | package/madwifi/patches-upstream/111-minstrel_crash.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/package/madwifi/patches-upstream/111-minstrel_crash.patch b/package/madwifi/patches-upstream/111-minstrel_crash.patch new file mode 100644 index 0000000000..cc1fbe6a89 --- /dev/null +++ b/package/madwifi/patches-upstream/111-minstrel_crash.patch @@ -0,0 +1,14 @@ +Index: madwifi-0.9.4/ath_rate/minstrel/minstrel.c +=================================================================== +--- madwifi-0.9.4.old/ath_rate/minstrel/minstrel.c 2007-12-12 05:11:07.000000000 +0100 ++++ madwifi-0.9.4/ath_rate/minstrel/minstrel.c 2008-07-24 15:15:41.000000000 +0200 +@@ -394,6 +394,9 @@ + int rc1, rc2, rc3; /* Index into the rate table, so for example, it is 0..11 */ + int rixc1, rixc2, rixc3; /* The actual bit rate used */ + ++ if (sn->num_rates <= 0) ++ return; ++ + if (sn->is_sampling) { + sn->is_sampling = 0; + if (sn->rs_sample_rate_slower) |