diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/madwifi/madwifi-modules-0.9.3 | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/madwifi/madwifi-modules-0.9.3')
-rw-r--r-- | recipes/madwifi/madwifi-modules-0.9.3/madwifi-devname.patch | 115 | ||||
-rw-r--r-- | recipes/madwifi/madwifi-modules-0.9.3/madwifi-skbpanic.patch | 16 |
2 files changed, 131 insertions, 0 deletions
diff --git a/recipes/madwifi/madwifi-modules-0.9.3/madwifi-devname.patch b/recipes/madwifi/madwifi-modules-0.9.3/madwifi-devname.patch new file mode 100644 index 0000000000..8f56b0485e --- /dev/null +++ b/recipes/madwifi/madwifi-modules-0.9.3/madwifi-devname.patch @@ -0,0 +1,115 @@ +diff -uNr madwifi-0.9.3-orig/ath/if_ath.c madwifi-0.9.3/ath/if_ath.c +--- madwifi-0.9.3-orig/ath/if_ath.c 2007-03-03 07:20:46.000000000 +0100 ++++ madwifi-0.9.3/ath/if_ath.c 2007-03-27 20:02:15.004192220 +0200 +@@ -903,7 +903,8 @@ + + if (autocreatemode != -1) { + rtnl_lock(); +- error = ieee80211_create_vap(ic, "ath%d", dev, ++ /*error = ieee80211_create_vap(ic, "ath%d", dev,*/ ++ error = ieee80211_create_vap(ic, "wlan%d", dev, + autocreatemode, IEEE80211_CLONE_BSSID); + rtnl_unlock(); + if (error) +@@ -9730,7 +9731,7 @@ + }; + static ctl_table ath_ath_table[] = { + { .ctl_name = DEV_ATH, +- .procname = "ath", ++ .procname = "wlan", + .mode = 0555, + .child = ath_static_sysctls + }, { 0 } +diff -uNr madwifi-0.9.3-orig/ath_hal/ah_os.c madwifi-0.9.3/ath_hal/ah_os.c +--- madwifi-0.9.3-orig/ath_hal/ah_os.c 2007-02-21 07:46:24.000000000 +0100 ++++ madwifi-0.9.3/ath_hal/ah_os.c 2007-03-27 20:02:05.571774828 +0200 +@@ -503,7 +503,7 @@ + }; + static ctl_table ath_ath_table[] = { + { .ctl_name = DEV_ATH, +- .procname = "ath", ++ .procname = "wlan", + .mode = 0555, + .child = ath_hal_table + }, { 0 } +diff -uNr madwifi-0.9.3-orig/ath_rate/amrr/amrr.c madwifi-0.9.3/ath_rate/amrr/amrr.c +--- madwifi-0.9.3-orig/ath_rate/amrr/amrr.c 2007-02-21 07:46:24.000000000 +0100 ++++ madwifi-0.9.3/ath_rate/amrr/amrr.c 2007-03-27 20:01:47.450972963 +0200 +@@ -530,7 +530,7 @@ + }; + static ctl_table ath_ath_table[] = { + { .ctl_name = DEV_ATH, +- .procname = "ath", ++ .procname = "wlan", + .mode = 0555, + .child = ath_rate_table + }, { 0 } +diff -uNr madwifi-0.9.3-orig/ath_rate/onoe/onoe.c madwifi-0.9.3/ath_rate/onoe/onoe.c +--- madwifi-0.9.3-orig/ath_rate/onoe/onoe.c 2007-02-21 07:46:24.000000000 +0100 ++++ madwifi-0.9.3/ath_rate/onoe/onoe.c 2007-03-27 20:01:35.362438027 +0200 +@@ -477,7 +477,7 @@ + }; + static ctl_table ath_ath_table[] = { + { .ctl_name = DEV_ATH, +- .procname = "ath", ++ .procname = "wlan", + .mode = 0555, + .child = ath_rate_table + }, { 0 } +diff -uNr madwifi-0.9.3-orig/tools/80211debug.c madwifi-0.9.3/tools/80211debug.c +--- madwifi-0.9.3-orig/tools/80211debug.c 2006-12-08 18:20:08.000000000 +0100 ++++ madwifi-0.9.3/tools/80211debug.c 2007-03-27 20:07:02.808926708 +0200 +@@ -183,7 +183,7 @@ + int + main(int argc, char *argv[]) + { +- const char *ifname = "ath0"; ++ const char *ifname = "wlan0"; + const char *cp, *tp; + const char *sep; + int op, i; +diff -uNr madwifi-0.9.3-orig/tools/80211stats.c madwifi-0.9.3/tools/80211stats.c +--- madwifi-0.9.3-orig/tools/80211stats.c 2007-02-07 04:18:49.000000000 +0100 ++++ madwifi-0.9.3/tools/80211stats.c 2007-03-27 20:04:16.297559340 +0200 +@@ -252,7 +252,7 @@ + struct iwreq iwr; + int allnodes = 0; + +- const char *ifname = "ath0"; ++ const char *ifname = "wlan0"; + + s = socket(AF_INET, SOCK_DGRAM, 0); + if (s < 0) +diff -uNr madwifi-0.9.3-orig/tools/athdebug.c madwifi-0.9.3/tools/athdebug.c +--- madwifi-0.9.3-orig/tools/athdebug.c 2006-12-08 18:20:08.000000000 +0100 ++++ madwifi-0.9.3/tools/athdebug.c 2007-03-27 20:03:32.583625082 +0200 +@@ -185,7 +185,7 @@ + #ifdef __linux__ + const char *ifname = "wifi0"; + #else +- const char *ifname = "ath0"; ++ const char *ifname = "wlan0"; + #endif + const char *cp, *tp; + const char *sep; +@@ -209,7 +209,7 @@ + #ifdef __linux__ + snprintf(oid, sizeof(oid), "dev.%s.debug", ifname); + #else +- snprintf(oid, sizeof(oid), "dev.ath.%s.debug", ifname+3); ++ snprintf(oid, sizeof(oid), "dev.wlan.%s.debug", ifname+3); + #endif + debuglen = sizeof(debug); + if (sysctlbyname(oid, &debug, &debuglen, NULL, 0) < 0) +diff -uNr madwifi-0.9.3-orig/tools/athstats.c madwifi-0.9.3/tools/athstats.c +--- madwifi-0.9.3-orig/tools/athstats.c 2007-01-12 03:45:36.000000000 +0100 ++++ madwifi-0.9.3/tools/athstats.c 2007-03-27 20:03:54.176580535 +0200 +@@ -229,7 +229,7 @@ + #ifdef __linux__ + const char *ifname = "wifi0"; + #else +- const char *ifname = "ath0"; ++ const char *ifname = "wlan0"; + #endif + int s; + struct ifreq ifr; diff --git a/recipes/madwifi/madwifi-modules-0.9.3/madwifi-skbpanic.patch b/recipes/madwifi/madwifi-modules-0.9.3/madwifi-skbpanic.patch new file mode 100644 index 0000000000..bad4989f60 --- /dev/null +++ b/recipes/madwifi/madwifi-modules-0.9.3/madwifi-skbpanic.patch @@ -0,0 +1,16 @@ +--- madwifi-0.9.3-orig/ath/if_ath.c 2007-04-12 12:53:01.000000000 +0200 ++++ madwifi-0.9.3/ath/if_ath.c 2007-04-12 12:40:37.078056016 +0200 +@@ -5634,6 +5634,13 @@ + sc->sc_devstats.rx_packets++; + sc->sc_devstats.rx_bytes += len; + ++ if((skb->tail + len) > skb->end) { ++ printk(" --------- found dodgy wifi rx skb_put\n"); ++ dev_kfree_skb(skb); ++ skb = NULL; ++ goto rx_next; ++ } ++ + skb_put(skb, len); + skb->protocol = __constant_htons(ETH_P_CONTROL); + |