89b46082dc3e32d8bc869fe803287088a4cf5cc4
[openwrt.git] / package / madwifi / patches / 200-no_debug.patch
1 diff -ur madwifi.old/ath/if_ath.c madwifi.dev/ath/if_ath.c
2 --- madwifi.old/ath/if_ath.c    2007-02-20 22:50:52.277096688 +0100
3 +++ madwifi.dev/ath/if_ath.c    2007-02-20 22:53:50.476006336 +0100
4 @@ -72,7 +72,7 @@
5  #include <net80211/if_llc.h>
6  #endif
7  
8 -#define        AR_DEBUG
9 +#undef AR_DEBUG
10  
11  #include "if_athrate.h"
12  #include "net80211/if_athproto.h"
13 @@ -347,7 +347,7 @@
14                 ath_keyprint(__func__, ix, hk, mac);            \
15  } while (0)
16  #else /* defined(AR_DEBUG) */
17 -#define        IFF_DUMPPKTS(sc, _m)    netif_msg_dumppkts(&sc->sc_ic)
18 +#define        IFF_DUMPPKTS(sc, _m)    0
19  #define        DPRINTF(sc, _m, _fmt, ...)
20  #define        KEYPRINTF(sc, k, ix, mac)
21  #endif /* defined(AR_DEBUG) */
22 diff -ur madwifi.old/ath_rate/amrr/amrr.c madwifi.dev/ath_rate/amrr/amrr.c
23 --- madwifi.old/ath_rate/amrr/amrr.c    2007-02-20 22:50:52.278096536 +0100
24 +++ madwifi.dev/ath_rate/amrr/amrr.c    2007-02-20 22:50:31.652232144 +0100
25 @@ -67,7 +67,7 @@
26  
27  #include "amrr.h"
28  
29 -#define        AMRR_DEBUG
30 +#undef AMRR_DEBUG
31  #ifdef AMRR_DEBUG
32  #define        DPRINTF(sc, _fmt, ...) do {                                     \
33         if (sc->sc_debug & 0x10)                                        \
34 diff -ur madwifi.old/ath_rate/onoe/onoe.c madwifi.dev/ath_rate/onoe/onoe.c
35 --- madwifi.old/ath_rate/onoe/onoe.c    2007-02-20 22:50:52.278096536 +0100
36 +++ madwifi.dev/ath_rate/onoe/onoe.c    2007-02-20 22:50:31.653231992 +0100
37 @@ -63,7 +63,7 @@
38  
39  #include "onoe.h"
40  
41 -#define        ONOE_DEBUG
42 +#undef ONOE_DEBUG
43  #ifdef ONOE_DEBUG
44  enum {
45         ATH_DEBUG_RATE  = 0x00000010,   /* rate control */
46 diff -ur madwifi.old/ath_rate/sample/sample.c madwifi.dev/ath_rate/sample/sample.c
47 --- madwifi.old/ath_rate/sample/sample.c        2007-02-20 22:50:52.278096536 +0100
48 +++ madwifi.dev/ath_rate/sample/sample.c        2007-02-20 22:50:31.653231992 +0100
49 @@ -65,7 +65,7 @@
50  
51  #include "sample.h"
52  
53 -#define        SAMPLE_DEBUG
54 +#undef SAMPLE_DEBUG
55  #ifdef SAMPLE_DEBUG
56  enum {
57         ATH_DEBUG_RATE          = 0x00000010    /* rate control */
58 diff -ur madwifi.old/net80211/ieee80211_var.h madwifi.dev/net80211/ieee80211_var.h
59 --- madwifi.old/net80211/ieee80211_var.h        2007-02-20 22:50:52.279096384 +0100
60 +++ madwifi.dev/net80211/ieee80211_var.h        2007-02-20 22:50:31.654231840 +0100
61 @@ -37,7 +37,7 @@
62  /*
63   * Definitions for IEEE 802.11 drivers.
64   */
65 -#define        IEEE80211_DEBUG
66 +#undef IEEE80211_DEBUG
67  #undef IEEE80211_DEBUG_REFCNT                  /* node refcnt stuff */
68  
69  #include <net80211/ieee80211_linux.h>
70 diff -ur madwifi.old/tools/do_multi.c madwifi.dev/tools/do_multi.c
71 --- madwifi.old/tools/do_multi.c        2007-02-20 22:50:52.279096384 +0100
72 +++ madwifi.dev/tools/do_multi.c        2007-02-20 22:50:31.654231840 +0100
73 @@ -9,16 +9,20 @@
74  
75      progname = basename(argv[0]);
76  
77 +#if 0
78      if(strcmp(progname, "80211debug") == 0)
79         ret = a80211debug_init(argc, argv);
80 +#endif
81      if(strcmp(progname, "80211stats") == 0)
82         ret = a80211stats_init(argc, argv);
83      if(strcmp(progname, "athchans") == 0)
84         ret = athchans_init(argc, argv);
85      if(strcmp(progname, "athctrl") == 0)
86         ret =  athctrl_init(argc, argv);
87 +#if 0
88      if(strcmp(progname, "athdebug") == 0)
89         ret =  athdebug_init(argc, argv);
90 +#endif
91      if(strcmp(progname, "athkey") == 0)
92         ret =  athkey_init(argc, argv);
93      if(strcmp(progname, "athstats") == 0)
94 diff -ur madwifi.old/tools/Makefile madwifi.dev/tools/Makefile
95 --- madwifi.old/tools/Makefile  2007-02-20 22:50:52.279096384 +0100
96 +++ madwifi.dev/tools/Makefile  2007-02-20 22:50:31.654231840 +0100
97 @@ -52,7 +52,7 @@
98         
99  ifdef DOMULTI
100  OBJS=  do_multi.o athstats.o 80211stats.o athkey.o athchans.o athctrl.o \
101 -       athdebug.o 80211debug.o wlanconfig.o 
102 +       wlanconfig.o 
103  ALL=   ${OBJS} madwifi_multi
104  endif
105  
106 @@ -85,7 +85,7 @@
107         ${CC} -c -o do_multi.o -DDOMULTI=1 ${ALL_CFLAGS} do_multi.c
108  madwifi_multi:
109         ${CC} -o madwifi_multi ${LDFLAGS} ${OBJS}
110 -       for i in athstats 80211stats athkey athchans athctrl athdebug wlanconfig 80211debug; do \
111 +       for i in athstats 80211stats athkey athchans athctrl wlanconfig; do \
112         ln -s -f madwifi_multi $$i; \
113         done
114