refresh madwifi patches
[openwrt/openwrt.git] / package / madwifi / patches / 200-no_debug.patch
1 Index: madwifi-ng-r2568-20070710/ath/if_ath.c
2 ===================================================================
3 --- madwifi-ng-r2568-20070710.orig/ath/if_ath.c 2007-07-23 01:48:43.942484311 +0200
4 +++ madwifi-ng-r2568-20070710/ath/if_ath.c 2007-07-23 01:48:44.466514171 +0200
5 @@ -75,7 +75,7 @@
6 #include <net80211/if_llc.h>
7 #endif
8
9 -#define AR_DEBUG
10 +#undef AR_DEBUG
11
12 #include "net80211/if_athproto.h"
13 #include "if_athvar.h"
14 Index: madwifi-ng-r2568-20070710/ath_rate/amrr/amrr.c
15 ===================================================================
16 --- madwifi-ng-r2568-20070710.orig/ath_rate/amrr/amrr.c 2007-07-23 01:48:37.298105667 +0200
17 +++ madwifi-ng-r2568-20070710/ath_rate/amrr/amrr.c 2007-07-23 01:48:44.470514400 +0200
18 @@ -70,7 +70,7 @@
19
20 #include "amrr.h"
21
22 -#define AMRR_DEBUG
23 +#undef AMRR_DEBUG
24 #ifdef AMRR_DEBUG
25 #define DPRINTF(sc, _fmt, ...) do { \
26 if (sc->sc_debug & 0x10) \
27 Index: madwifi-ng-r2568-20070710/ath_rate/minstrel/minstrel.c
28 ===================================================================
29 --- madwifi-ng-r2568-20070710.orig/ath_rate/minstrel/minstrel.c 2007-07-23 01:48:40.974315165 +0200
30 +++ madwifi-ng-r2568-20070710/ath_rate/minstrel/minstrel.c 2007-07-23 01:48:44.494515770 +0200
31 @@ -117,7 +117,7 @@
32
33 #include "minstrel.h"
34
35 -#define MINSTREL_DEBUG
36 +#undef MINSTREL_DEBUG
37 #ifdef MINSTREL_DEBUG
38 enum {
39 ATH_DEBUG_RATE = 0x00000010 /* rate control */
40 Index: madwifi-ng-r2568-20070710/ath_rate/onoe/onoe.c
41 ===================================================================
42 --- madwifi-ng-r2568-20070710.orig/ath_rate/onoe/onoe.c 2007-07-23 01:48:37.314106578 +0200
43 +++ madwifi-ng-r2568-20070710/ath_rate/onoe/onoe.c 2007-07-23 01:48:44.518517136 +0200
44 @@ -66,7 +66,7 @@
45
46 #include "onoe.h"
47
48 -#define ONOE_DEBUG
49 +#undef ONOE_DEBUG
50 #ifdef ONOE_DEBUG
51 enum {
52 ATH_DEBUG_RATE = 0x00000010, /* rate control */
53 Index: madwifi-ng-r2568-20070710/ath_rate/sample/sample.c
54 ===================================================================
55 --- madwifi-ng-r2568-20070710.orig/ath_rate/sample/sample.c 2007-07-23 01:48:37.322107035 +0200
56 +++ madwifi-ng-r2568-20070710/ath_rate/sample/sample.c 2007-07-23 01:48:44.546518731 +0200
57 @@ -68,7 +68,7 @@
58
59 #include "sample.h"
60
61 -#define SAMPLE_DEBUG
62 +#undef SAMPLE_DEBUG
63 #ifdef SAMPLE_DEBUG
64 enum {
65 ATH_DEBUG_NODE = 0x00080000, /* node management */
66 Index: madwifi-ng-r2568-20070710/net80211/ieee80211_proto.c
67 ===================================================================
68 --- madwifi-ng-r2568-20070710.orig/net80211/ieee80211_proto.c 2007-07-23 01:48:37.330107492 +0200
69 +++ madwifi-ng-r2568-20070710/net80211/ieee80211_proto.c 2007-07-23 01:48:44.570520097 +0200
70 @@ -286,6 +286,7 @@
71 }
72 EXPORT_SYMBOL(ieee80211_aclator_get);
73
74 +#ifdef IEEE80211_DEBUG
75 void
76 ieee80211_print_essid(const u_int8_t *essid, int len)
77 {
78 @@ -312,7 +313,6 @@
79 }
80 EXPORT_SYMBOL(ieee80211_print_essid);
81
82 -#ifdef IEEE80211_DEBUG
83 void
84 ieee80211_dump_pkt(struct ieee80211com *ic,
85 const u_int8_t *buf, int len, int rate, int rssi)
86 Index: madwifi-ng-r2568-20070710/net80211/ieee80211_var.h
87 ===================================================================
88 --- madwifi-ng-r2568-20070710.orig/net80211/ieee80211_var.h 2007-07-23 01:48:37.338107946 +0200
89 +++ madwifi-ng-r2568-20070710/net80211/ieee80211_var.h 2007-07-23 01:48:44.622523064 +0200
90 @@ -35,8 +35,8 @@
91 #ifndef _NET80211_IEEE80211_VAR_H_
92 #define _NET80211_IEEE80211_VAR_H_
93
94 -#define IEEE80211_DEBUG
95 -#define IEEE80211_DEBUG_REFCNT /* Node reference count debugging */
96 +#undef IEEE80211_DEBUG
97 +#undef IEEE80211_DEBUG_REFCNT /* Node reference count debugging */
98
99 /* Definitions for IEEE 802.11 drivers. */
100 #include <net80211/ieee80211_linux.h>
101 Index: madwifi-ng-r2568-20070710/tools/do_multi.c
102 ===================================================================
103 --- madwifi-ng-r2568-20070710.orig/tools/do_multi.c 2007-07-23 01:48:39.754245634 +0200
104 +++ madwifi-ng-r2568-20070710/tools/do_multi.c 2007-07-23 01:48:44.650524656 +0200
105 @@ -9,16 +9,20 @@
106
107 progname = basename(argv[0]);
108
109 +#if 0
110 if(strcmp(progname, "80211debug") == 0)
111 ret = a80211debug_init(argc, argv);
112 +#endif
113 if(strcmp(progname, "80211stats") == 0)
114 ret = a80211stats_init(argc, argv);
115 if(strcmp(progname, "athchans") == 0)
116 ret = athchans_init(argc, argv);
117 if(strcmp(progname, "athctrl") == 0)
118 ret = athctrl_init(argc, argv);
119 +#if 0
120 if(strcmp(progname, "athdebug") == 0)
121 ret = athdebug_init(argc, argv);
122 +#endif
123 if(strcmp(progname, "athkey") == 0)
124 ret = athkey_init(argc, argv);
125 if(strcmp(progname, "athstats") == 0)
126 Index: madwifi-ng-r2568-20070710/tools/Makefile
127 ===================================================================
128 --- madwifi-ng-r2568-20070710.orig/tools/Makefile 2007-07-23 01:48:39.798248141 +0200
129 +++ madwifi-ng-r2568-20070710/tools/Makefile 2007-07-23 01:48:44.670525796 +0200
130 @@ -52,7 +52,7 @@
131
132 ifdef DOMULTI
133 OBJS= do_multi.o athstats.o 80211stats.o athkey.o athchans.o athctrl.o \
134 - athdebug.o 80211debug.o wlanconfig.o
135 + wlanconfig.o
136 ALL= ${OBJS} madwifi_multi
137 endif
138
139 @@ -85,7 +85,7 @@
140 ${CC} -c -o do_multi.o -DDOMULTI=1 ${ALL_CFLAGS} do_multi.c
141 madwifi_multi:
142 ${CC} -o madwifi_multi ${LDFLAGS} ${OBJS}
143 - for i in athstats 80211stats athkey athchans athctrl athdebug wlanconfig 80211debug; do \
144 + for i in athstats 80211stats athkey athchans athctrl wlanconfig; do \
145 ln -s -f madwifi_multi $$i; \
146 done
147