summaryrefslogtreecommitdiffstats
path: root/package/madwifi/patches-upstream
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-07-31 17:27:55 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-07-31 17:27:55 +0000
commitc688bb1d11d8d1aa0fe3d1d8d41b81859af4be05 (patch)
tree30406a1c04b94a622995711b71552c7090fc4340 /package/madwifi/patches-upstream
parent0f61e46c1a7686259e846b943aee77050fe707e0 (diff)
downloadmaster-31e0f0ae-c688bb1d11d8d1aa0fe3d1d8d41b81859af4be05.tar.gz
master-31e0f0ae-c688bb1d11d8d1aa0fe3d1d8d41b81859af4be05.tar.bz2
master-31e0f0ae-c688bb1d11d8d1aa0fe3d1d8d41b81859af4be05.zip
madwifi: add 0.9.4 madwifi as a menuconfig option, as requested in some mails/tickets untested, does not work with 2.6.26
SVN-Revision: 12047
Diffstat (limited to 'package/madwifi/patches-upstream')
-rw-r--r--package/madwifi/patches-upstream/104-autocreate_none.patch13
-rw-r--r--package/madwifi/patches-upstream/111-minstrel_crash.patch14
2 files changed, 27 insertions, 0 deletions
diff --git a/package/madwifi/patches-upstream/104-autocreate_none.patch b/package/madwifi/patches-upstream/104-autocreate_none.patch
new file mode 100644
index 0000000000..e290f86ffc
--- /dev/null
+++ b/package/madwifi/patches-upstream/104-autocreate_none.patch
@@ -0,0 +1,13 @@
+Index: madwifi-0.9.4/ath/if_ath.c
+===================================================================
+--- madwifi-0.9.4.old/ath/if_ath.c 2008-02-13 06:13:10.000000000 +0100
++++ madwifi-0.9.4/ath/if_ath.c 2008-05-06 10:25:15.000000000 +0200
+@@ -404,7 +404,7 @@
+ struct ath_hal *ah;
+ HAL_STATUS status;
+ int error = 0, i;
+- int autocreatemode = IEEE80211_M_STA;
++ int autocreatemode = -1;
+ u_int8_t csz;
+
+ sc->devid = devid;
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)