python-paste: Add new recipe
[openembedded.git] / recipes / madwifi / madwifi-modules-0.9.3 / madwifi-devname.patch
blob8f56b0485ea7b083db26fc4f673964154af4d086
1 diff -uNr madwifi-0.9.3-orig/ath/if_ath.c madwifi-0.9.3/ath/if_ath.c
2 --- madwifi-0.9.3-orig/ath/if_ath.c 2007-03-03 07:20:46.000000000 +0100
3 +++ madwifi-0.9.3/ath/if_ath.c 2007-03-27 20:02:15.004192220 +0200
4 @@ -903,7 +903,8 @@
6 if (autocreatemode != -1) {
7 rtnl_lock();
8 - error = ieee80211_create_vap(ic, "ath%d", dev,
9 + /*error = ieee80211_create_vap(ic, "ath%d", dev,*/
10 + error = ieee80211_create_vap(ic, "wlan%d", dev,
11 autocreatemode, IEEE80211_CLONE_BSSID);
12 rtnl_unlock();
13 if (error)
14 @@ -9730,7 +9731,7 @@
16 static ctl_table ath_ath_table[] = {
17 { .ctl_name = DEV_ATH,
18 - .procname = "ath",
19 + .procname = "wlan",
20 .mode = 0555,
21 .child = ath_static_sysctls
22 }, { 0 }
23 diff -uNr madwifi-0.9.3-orig/ath_hal/ah_os.c madwifi-0.9.3/ath_hal/ah_os.c
24 --- madwifi-0.9.3-orig/ath_hal/ah_os.c 2007-02-21 07:46:24.000000000 +0100
25 +++ madwifi-0.9.3/ath_hal/ah_os.c 2007-03-27 20:02:05.571774828 +0200
26 @@ -503,7 +503,7 @@
28 static ctl_table ath_ath_table[] = {
29 { .ctl_name = DEV_ATH,
30 - .procname = "ath",
31 + .procname = "wlan",
32 .mode = 0555,
33 .child = ath_hal_table
34 }, { 0 }
35 diff -uNr madwifi-0.9.3-orig/ath_rate/amrr/amrr.c madwifi-0.9.3/ath_rate/amrr/amrr.c
36 --- madwifi-0.9.3-orig/ath_rate/amrr/amrr.c 2007-02-21 07:46:24.000000000 +0100
37 +++ madwifi-0.9.3/ath_rate/amrr/amrr.c 2007-03-27 20:01:47.450972963 +0200
38 @@ -530,7 +530,7 @@
40 static ctl_table ath_ath_table[] = {
41 { .ctl_name = DEV_ATH,
42 - .procname = "ath",
43 + .procname = "wlan",
44 .mode = 0555,
45 .child = ath_rate_table
46 }, { 0 }
47 diff -uNr madwifi-0.9.3-orig/ath_rate/onoe/onoe.c madwifi-0.9.3/ath_rate/onoe/onoe.c
48 --- madwifi-0.9.3-orig/ath_rate/onoe/onoe.c 2007-02-21 07:46:24.000000000 +0100
49 +++ madwifi-0.9.3/ath_rate/onoe/onoe.c 2007-03-27 20:01:35.362438027 +0200
50 @@ -477,7 +477,7 @@
52 static ctl_table ath_ath_table[] = {
53 { .ctl_name = DEV_ATH,
54 - .procname = "ath",
55 + .procname = "wlan",
56 .mode = 0555,
57 .child = ath_rate_table
58 }, { 0 }
59 diff -uNr madwifi-0.9.3-orig/tools/80211debug.c madwifi-0.9.3/tools/80211debug.c
60 --- madwifi-0.9.3-orig/tools/80211debug.c 2006-12-08 18:20:08.000000000 +0100
61 +++ madwifi-0.9.3/tools/80211debug.c 2007-03-27 20:07:02.808926708 +0200
62 @@ -183,7 +183,7 @@
63 int
64 main(int argc, char *argv[])
66 - const char *ifname = "ath0";
67 + const char *ifname = "wlan0";
68 const char *cp, *tp;
69 const char *sep;
70 int op, i;
71 diff -uNr madwifi-0.9.3-orig/tools/80211stats.c madwifi-0.9.3/tools/80211stats.c
72 --- madwifi-0.9.3-orig/tools/80211stats.c 2007-02-07 04:18:49.000000000 +0100
73 +++ madwifi-0.9.3/tools/80211stats.c 2007-03-27 20:04:16.297559340 +0200
74 @@ -252,7 +252,7 @@
75 struct iwreq iwr;
76 int allnodes = 0;
78 - const char *ifname = "ath0";
79 + const char *ifname = "wlan0";
81 s = socket(AF_INET, SOCK_DGRAM, 0);
82 if (s < 0)
83 diff -uNr madwifi-0.9.3-orig/tools/athdebug.c madwifi-0.9.3/tools/athdebug.c
84 --- madwifi-0.9.3-orig/tools/athdebug.c 2006-12-08 18:20:08.000000000 +0100
85 +++ madwifi-0.9.3/tools/athdebug.c 2007-03-27 20:03:32.583625082 +0200
86 @@ -185,7 +185,7 @@
87 #ifdef __linux__
88 const char *ifname = "wifi0";
89 #else
90 - const char *ifname = "ath0";
91 + const char *ifname = "wlan0";
92 #endif
93 const char *cp, *tp;
94 const char *sep;
95 @@ -209,7 +209,7 @@
96 #ifdef __linux__
97 snprintf(oid, sizeof(oid), "dev.%s.debug", ifname);
98 #else
99 - snprintf(oid, sizeof(oid), "dev.ath.%s.debug", ifname+3);
100 + snprintf(oid, sizeof(oid), "dev.wlan.%s.debug", ifname+3);
101 #endif
102 debuglen = sizeof(debug);
103 if (sysctlbyname(oid, &debug, &debuglen, NULL, 0) < 0)
104 diff -uNr madwifi-0.9.3-orig/tools/athstats.c madwifi-0.9.3/tools/athstats.c
105 --- madwifi-0.9.3-orig/tools/athstats.c 2007-01-12 03:45:36.000000000 +0100
106 +++ madwifi-0.9.3/tools/athstats.c 2007-03-27 20:03:54.176580535 +0200
107 @@ -229,7 +229,7 @@
108 #ifdef __linux__
109 const char *ifname = "wifi0";
110 #else
111 - const char *ifname = "ath0";
112 + const char *ifname = "wlan0";
113 #endif
114 int s;
115 struct ifreq ifr;