update madwifi to latest version (fixes #2403)
[openwrt/openwrt.git] / package / madwifi / patches / 200-no_debug.patch
1 Index: madwifi-ng-r2799-20071030/ath/if_ath.c
2 ===================================================================
3 --- madwifi-ng-r2799-20071030.orig/ath/if_ath.c 2007-10-31 14:04:50.577503726 +0100
4 +++ madwifi-ng-r2799-20071030/ath/if_ath.c 2007-10-31 14:04:50.997527661 +0100
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-r2799-20071030/ath_rate/amrr/amrr.c
15 ===================================================================
16 --- madwifi-ng-r2799-20071030.orig/ath_rate/amrr/amrr.c 2007-10-31 14:04:46.353263000 +0100
17 +++ madwifi-ng-r2799-20071030/ath_rate/amrr/amrr.c 2007-10-31 14:04:51.001527890 +0100
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-r2799-20071030/ath_rate/minstrel/minstrel.c
28 ===================================================================
29 --- madwifi-ng-r2799-20071030.orig/ath_rate/minstrel/minstrel.c 2007-10-31 14:04:48.537387466 +0100
30 +++ madwifi-ng-r2799-20071030/ath_rate/minstrel/minstrel.c 2007-10-31 14:04:51.009528346 +0100
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-r2799-20071030/ath_rate/onoe/onoe.c
41 ===================================================================
42 --- madwifi-ng-r2799-20071030.orig/ath_rate/onoe/onoe.c 2007-10-31 14:04:46.369263913 +0100
43 +++ madwifi-ng-r2799-20071030/ath_rate/onoe/onoe.c 2007-10-31 14:04:51.013528575 +0100
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-r2799-20071030/ath_rate/sample/sample.c
54 ===================================================================
55 --- madwifi-ng-r2799-20071030.orig/ath_rate/sample/sample.c 2007-10-31 14:04:46.377264368 +0100
56 +++ madwifi-ng-r2799-20071030/ath_rate/sample/sample.c 2007-10-31 14:04:51.017528801 +0100
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-r2799-20071030/net80211/ieee80211_var.h
67 ===================================================================
68 --- madwifi-ng-r2799-20071030.orig/net80211/ieee80211_var.h 2007-10-31 14:04:46.385264824 +0100
69 +++ madwifi-ng-r2799-20071030/net80211/ieee80211_var.h 2007-10-31 14:04:51.017528801 +0100
70 @@ -35,8 +35,8 @@
71 #ifndef _NET80211_IEEE80211_VAR_H_
72 #define _NET80211_IEEE80211_VAR_H_
73
74 -#define IEEE80211_DEBUG
75 -#define IEEE80211_DEBUG_REFCNT /* Node reference count debugging */
76 +#undef IEEE80211_DEBUG
77 +#undef IEEE80211_DEBUG_REFCNT /* Node reference count debugging */
78
79 /* Definitions for IEEE 802.11 drivers. */
80 #include <net80211/ieee80211_linux.h>
81 Index: madwifi-ng-r2799-20071030/tools/do_multi.c
82 ===================================================================
83 --- madwifi-ng-r2799-20071030.orig/tools/do_multi.c 2007-10-31 14:04:47.557331616 +0100
84 +++ madwifi-ng-r2799-20071030/tools/do_multi.c 2007-10-31 14:04:51.017528801 +0100
85 @@ -9,16 +9,20 @@
86
87 progname = basename(argv[0]);
88
89 +#if 0
90 if(strcmp(progname, "80211debug") == 0)
91 ret = a80211debug_init(argc, argv);
92 +#endif
93 if(strcmp(progname, "80211stats") == 0)
94 ret = a80211stats_init(argc, argv);
95 if(strcmp(progname, "athchans") == 0)
96 ret = athchans_init(argc, argv);
97 if(strcmp(progname, "athctrl") == 0)
98 ret = athctrl_init(argc, argv);
99 +#if 0
100 if(strcmp(progname, "athdebug") == 0)
101 ret = athdebug_init(argc, argv);
102 +#endif
103 if(strcmp(progname, "athkey") == 0)
104 ret = athkey_init(argc, argv);
105 if(strcmp(progname, "athstats") == 0)
106 Index: madwifi-ng-r2799-20071030/tools/Makefile
107 ===================================================================
108 --- madwifi-ng-r2799-20071030.orig/tools/Makefile 2007-10-31 14:04:47.561331846 +0100
109 +++ madwifi-ng-r2799-20071030/tools/Makefile 2007-10-31 14:04:51.017528801 +0100
110 @@ -48,7 +48,7 @@
111
112
113 ALLPROGS= athstats 80211stats athkey athchans athctrl \
114 - athdebug 80211debug wlanconfig ath_info
115 + wlanconfig ath_info
116
117 OBJS= $(patsubst %,%.o,$(ALLPROGS) do_multi)
118 ALL= ${OBJS} madwifi_multi
119 @@ -84,7 +84,7 @@
120 ${CC} -c -o do_multi.o -DDOMULTI=1 ${ALL_CFLAGS} do_multi.c
121 madwifi_multi: $(OBJS)
122 ${CC} -o madwifi_multi ${LDFLAGS} ${OBJS}
123 - for i in athstats 80211stats athkey athchans athctrl athdebug wlanconfig 80211debug; do \
124 + for i in athstats 80211stats athkey athchans athctrl wlanconfig; do \
125 ln -s -f madwifi_multi $$i; \
126 done
127