source: trunk/package/madwifi/patches/200-no_debug.patch @ 6501

Last change on this file since 6501 was 6501, checked in by pavlov, 9 years ago

same propset here as changeset:6500

  • Property svn:eol-style set to native
File size: 4.9 KB
  • ath/if_ath.c

    diff -ur madwifi.old/ath/if_ath.c madwifi.dev/ath/if_ath.c
    old new  
    7272#include <net80211/if_llc.h> 
    7373#endif 
    7474 
    75 #define AR_DEBUG 
     75#undef  AR_DEBUG 
    7676 
    7777#include "if_athrate.h" 
    7878#include "net80211/if_athproto.h" 
     
    347347                ath_keyprint(__func__, ix, hk, mac);            \ 
    348348} while (0) 
    349349#else /* defined(AR_DEBUG) */ 
    350 #define IFF_DUMPPKTS(sc, _m)    netif_msg_dumppkts(&sc->sc_ic) 
     350#define IFF_DUMPPKTS(sc, _m)    0 
    351351#define DPRINTF(sc, _m, _fmt, ...) 
    352352#define KEYPRINTF(sc, k, ix, mac) 
    353353#endif /* defined(AR_DEBUG) */ 
  • ath_rate/amrr/amrr.c

    diff -ur madwifi.old/ath_rate/amrr/amrr.c madwifi.dev/ath_rate/amrr/amrr.c
    old new  
    6767 
    6868#include "amrr.h" 
    6969 
    70 #define AMRR_DEBUG 
     70#undef  AMRR_DEBUG 
    7171#ifdef AMRR_DEBUG 
    7272#define DPRINTF(sc, _fmt, ...) do {                                     \ 
    7373        if (sc->sc_debug & 0x10)                                        \ 
  • ath_rate/onoe/onoe.c

    diff -ur madwifi.old/ath_rate/onoe/onoe.c madwifi.dev/ath_rate/onoe/onoe.c
    old new  
    6363 
    6464#include "onoe.h" 
    6565 
    66 #define ONOE_DEBUG 
     66#undef  ONOE_DEBUG 
    6767#ifdef ONOE_DEBUG 
    6868enum { 
    6969        ATH_DEBUG_RATE  = 0x00000010,   /* rate control */ 
  • ath_rate/sample/sample.c

    diff -ur madwifi.old/ath_rate/sample/sample.c madwifi.dev/ath_rate/sample/sample.c
    old new  
    6565 
    6666#include "sample.h" 
    6767 
    68 #define SAMPLE_DEBUG 
     68#undef  SAMPLE_DEBUG 
    6969#ifdef SAMPLE_DEBUG 
    7070enum { 
    7171        ATH_DEBUG_RATE          = 0x00000010    /* rate control */ 
  • net80211/ieee80211_proto.c

    diff -ur madwifi.old/net80211/ieee80211_proto.c madwifi.dev/net80211/ieee80211_proto.c
    old new  
    307307} 
    308308EXPORT_SYMBOL(ieee80211_print_essid); 
    309309 
     310#ifdef IEEE80211_DEBUG 
    310311void 
    311312ieee80211_dump_pkt(struct ieee80211com *ic, 
    312313        const u_int8_t *buf, int len, int rate, int rssi) 
     
    385386        } 
    386387} 
    387388EXPORT_SYMBOL(ieee80211_dump_pkt); 
     389#endif /* IEEE80211_DEBUG */ 
    388390 
    389391int 
    390392ieee80211_fix_rate(struct ieee80211_node *ni, int flags) 
  • net80211/ieee80211_proto.h

    diff -ur madwifi.old/net80211/ieee80211_proto.h madwifi.dev/net80211/ieee80211_proto.h
    old new  
    246246#endif 
    247247int ieee80211_new_state(struct ieee80211vap *, enum ieee80211_state, int); 
    248248void ieee80211_print_essid(const u_int8_t *, int); 
     249#ifdef IEEE80211_DEBUG 
    249250void ieee80211_dump_pkt(struct ieee80211com *, const u_int8_t *, int, int, int); 
     251#else 
     252#define ieee80211_dump_pkt(...) 
     253#endif 
    250254struct sk_buff *ieee80211_getcfframe(struct ieee80211vap *, int); 
    251255 
    252256/* 
  • net80211/ieee80211_var.h

    diff -ur madwifi.old/net80211/ieee80211_var.h madwifi.dev/net80211/ieee80211_var.h
    old new  
    3737/* 
    3838 * Definitions for IEEE 802.11 drivers. 
    3939 */ 
    40 #define IEEE80211_DEBUG 
     40#undef  IEEE80211_DEBUG 
    4141#undef  IEEE80211_DEBUG_REFCNT                  /* node refcnt stuff */ 
    4242 
    4343#include <net80211/ieee80211_linux.h> 
  • tools/do_multi.c

    diff -ur madwifi.old/tools/do_multi.c madwifi.dev/tools/do_multi.c
    old new  
    99 
    1010    progname = basename(argv[0]); 
    1111 
     12#if 0 
    1213    if(strcmp(progname, "80211debug") == 0) 
    1314        ret = a80211debug_init(argc, argv); 
     15#endif 
    1416    if(strcmp(progname, "80211stats") == 0) 
    1517        ret = a80211stats_init(argc, argv); 
    1618    if(strcmp(progname, "athchans") == 0) 
    1719        ret = athchans_init(argc, argv); 
    1820    if(strcmp(progname, "athctrl") == 0) 
    1921        ret =  athctrl_init(argc, argv); 
     22#if 0 
    2023    if(strcmp(progname, "athdebug") == 0) 
    2124        ret =  athdebug_init(argc, argv); 
     25#endif 
    2226    if(strcmp(progname, "athkey") == 0) 
    2327        ret =  athkey_init(argc, argv); 
    2428    if(strcmp(progname, "athstats") == 0) 
  • tools/Makefile

    diff -ur madwifi.old/tools/Makefile madwifi.dev/tools/Makefile
    old new  
    5252         
    5353ifdef DOMULTI 
    5454OBJS=   do_multi.o athstats.o 80211stats.o athkey.o athchans.o athctrl.o \ 
    55         athdebug.o 80211debug.o wlanconfig.o  
     55        wlanconfig.o  
    5656ALL=    ${OBJS} madwifi_multi 
    5757endif 
    5858 
     
    8585        ${CC} -c -o do_multi.o -DDOMULTI=1 ${ALL_CFLAGS} do_multi.c 
    8686madwifi_multi: 
    8787        ${CC} -o madwifi_multi ${LDFLAGS} ${OBJS} 
    88         for i in athstats 80211stats athkey athchans athctrl athdebug wlanconfig 80211debug; do \ 
     88        for i in athstats 80211stats athkey athchans athctrl wlanconfig; do \ 
    8989        ln -s -f madwifi_multi $$i; \ 
    9090        done 
    9191 
Note: See TracBrowser for help on using the repository browser.