1 Index: madwifi-dfs-r3053/ath/if_ath.c
2 ===================================================================
3 --- madwifi-dfs-r3053.orig/ath/if_ath.c 2007-12-13 05:25:13.122373270 +0100
4 +++ madwifi-dfs-r3053/ath/if_ath.c 2007-12-13 05:25:13.342385808 +0100
6 * This software is derived from work of Atsushi Onoe; his contribution
7 * is greatly appreciated.
11 #include "if_ath_debug.h"
19 ath_debug_global = (ath_debug & ATH_DEBUG_GLOBAL);
20 sc->sc_debug = (ath_debug & ~ATH_DEBUG_GLOBAL);
21 DPRINTF(sc, ATH_DEBUG_ANY, "%s: devid 0x%x\n", __func__, devid);
25 * Cache line size is used to size and align various
26 @@ -1280,12 +1282,14 @@
27 /* If no default VAP debug flags are passed, allow a few to
28 * transfer down from the driver to new VAPs so we can have load
29 * time debugging for VAPs too. */
32 ((sc->sc_debug & ATH_DEBUG_RATE) ? IEEE80211_MSG_XRATE : 0) |
33 ((sc->sc_debug & ATH_DEBUG_XMIT) ? IEEE80211_MSG_OUTPUT : 0) |
34 ((sc->sc_debug & ATH_DEBUG_RECV) ? IEEE80211_MSG_INPUT : 0) |
39 ic->ic_debug = (sc->sc_default_ieee80211_debug & IEEE80211_MSG_IC);
41 @@ -10308,9 +10312,11 @@
47 sc->sc_debug = (val & ~ATH_DEBUG_GLOBAL);
48 ath_debug_global = (val & ATH_DEBUG_GLOBAL);
53 @@ -10721,9 +10727,11 @@
56 /* initialize values */
58 ath_debug_global = (ath_debug & ATH_DEBUG_GLOBAL);
59 sc->sc_debug = (ath_debug & ~ATH_DEBUG_GLOBAL);
60 sc->sc_default_ieee80211_debug = ieee80211_debug;
62 sc->sc_txantenna = 0; /* default to auto-selection */
63 sc->sc_txintrperiod = ATH_TXQ_INTR_PERIOD;
65 Index: madwifi-dfs-r3053/ath_rate/amrr/amrr.c
66 ===================================================================
67 --- madwifi-dfs-r3053.orig/ath_rate/amrr/amrr.c 2007-12-13 05:25:10.422219395 +0100
68 +++ madwifi-dfs-r3053/ath_rate/amrr/amrr.c 2007-12-13 05:25:13.342385808 +0100
76 #define DPRINTF(sc, _fmt, ...) do { \
77 if (sc->sc_debug & 0x10) \
78 Index: madwifi-dfs-r3053/ath_rate/minstrel/minstrel.c
79 ===================================================================
80 --- madwifi-dfs-r3053.orig/ath_rate/minstrel/minstrel.c 2007-12-13 05:25:12.006309667 +0100
81 +++ madwifi-dfs-r3053/ath_rate/minstrel/minstrel.c 2007-12-13 05:25:13.350386263 +0100
86 -#define MINSTREL_DEBUG
87 +#undef MINSTREL_DEBUG
90 ATH_DEBUG_RATE = 0x00000010 /* rate control */
91 Index: madwifi-dfs-r3053/ath_rate/onoe/onoe.c
92 ===================================================================
93 --- madwifi-dfs-r3053.orig/ath_rate/onoe/onoe.c 2007-12-13 05:25:10.438220308 +0100
94 +++ madwifi-dfs-r3053/ath_rate/onoe/onoe.c 2007-12-13 05:25:13.354386489 +0100
103 ATH_DEBUG_RATE = 0x00000010, /* rate control */
104 Index: madwifi-dfs-r3053/ath_rate/sample/sample.c
105 ===================================================================
106 --- madwifi-dfs-r3053.orig/ath_rate/sample/sample.c 2007-12-13 05:25:10.446220763 +0100
107 +++ madwifi-dfs-r3053/ath_rate/sample/sample.c 2007-12-13 05:25:13.358386718 +0100
112 -#define SAMPLE_DEBUG
116 ATH_DEBUG_RATE = 0x00000010, /* rate control */
117 Index: madwifi-dfs-r3053/tools/do_multi.c
118 ===================================================================
119 --- madwifi-dfs-r3053.orig/tools/do_multi.c 2007-12-13 05:25:11.242266126 +0100
120 +++ madwifi-dfs-r3053/tools/do_multi.c 2007-12-13 05:25:13.362386947 +0100
123 progname = basename(argv[0]);
126 if(strcmp(progname, "80211debug") == 0)
127 ret = a80211debug_init(argc, argv);
129 if(strcmp(progname, "80211stats") == 0)
130 ret = a80211stats_init(argc, argv);
131 if(strcmp(progname, "athchans") == 0)
132 ret = athchans_init(argc, argv);
133 if(strcmp(progname, "athctrl") == 0)
134 ret = athctrl_init(argc, argv);
136 if(strcmp(progname, "athdebug") == 0)
137 ret = athdebug_init(argc, argv);
139 if(strcmp(progname, "athkey") == 0)
140 ret = athkey_init(argc, argv);
141 if(strcmp(progname, "athstats") == 0)
142 Index: madwifi-dfs-r3053/tools/Makefile
143 ===================================================================
144 --- madwifi-dfs-r3053.orig/tools/Makefile 2007-12-13 05:25:11.246266355 +0100
145 +++ madwifi-dfs-r3053/tools/Makefile 2007-12-13 05:25:13.362386947 +0100
149 ALLPROGS= athstats 80211stats athkey athchans athctrl \
150 - athdebug 80211debug wlanconfig ath_info
151 + wlanconfig ath_info
153 OBJS= $(patsubst %,%.o,$(ALLPROGS) do_multi)
154 ALL= ${OBJS} madwifi_multi
156 ${CC} -c -o do_multi.o -DDOMULTI=1 ${ALL_CFLAGS} do_multi.c
157 madwifi_multi: $(OBJS)
158 ${CC} -o madwifi_multi ${LDFLAGS} ${OBJS}
159 - for i in athstats 80211stats athkey athchans athctrl athdebug wlanconfig 80211debug; do \
160 + for i in athstats 80211stats athkey athchans athctrl wlanconfig; do \
161 ln -s -f madwifi_multi $$i; \
164 Index: madwifi-dfs-r3053/net80211/ieee80211_linux.h
165 ===================================================================
166 --- madwifi-dfs-r3053.orig/net80211/ieee80211_linux.h 2007-12-13 05:25:10.470222132 +0100
167 +++ madwifi-dfs-r3053/net80211/ieee80211_linux.h 2007-12-13 05:25:13.362386947 +0100
169 #ifndef _NET80211_IEEE80211_LINUX_H_
170 #define _NET80211_IEEE80211_LINUX_H_
172 -#define IEEE80211_DEBUG
173 -#define IEEE80211_DEBUG_REFCNT /* Node reference count debugging */
174 +#undef IEEE80211_DEBUG
175 +#undef IEEE80211_DEBUG_REFCNT /* Node reference count debugging */
176 /* #define ATH_DEBUG_SPINLOCKS */ /* announce before spinlocking */
178 #include <linux/wireless.h>