Ticket #131: madwifi-debug.2.diff

File madwifi-debug.2.diff, 1.6 kB (added by mentor, 6 years ago)

Patch - No Typos - hopefully

  • net80211/ieee80211_var.h

    old new  
    637637        ieee80211_msg(_vap, IEEE80211_MSG_SCAN) 
    638638#define ieee80211_msg_assoc(_vap) \ 
    639639        ieee80211_msg(_vap, IEEE80211_MSG_ASSOC) 
    640 #else 
     640#else /* IEEE80211_DEBUG */ 
    641641#define IEEE80211_DPRINTF(_vap, _m, _fmt, ...) 
     642#define IEEE80211_NOTE(_vap, _m, _wh, _fmt, ...) 
    642643#define IEEE80211_NOTE_FRAME(_vap, _m, _wh, _fmt, ...) 
    643644#define IEEE80211_NOTE_MAC(_vap, _m, _mac, _fmt, ...) 
    644 #define ieee80211_msg_dumppkts(_vap)    0 
    645 #define ieee80211_msg(_vap, _m)         0 
    646 #endif 
     645#endif /* IEEE80211_DEBUG */ 
    647646 
    648647#endif /* _NET80211_IEEE80211_VAR_H_ */ 
  • ath/if_ath.c

    old new  
    300300MODULE_PARM_DESC(rfkill, "Enable/disable RFKILL capability"); 
    301301MODULE_PARM_DESC(autocreate, "Create ath device in [sta|ap|wds|adhoc|ahdemo|monitor] mode. defaults to sta, use 'none' to disable"); 
    302302 
     303static int      ath_debug = 0; 
    303304#ifdef AR_DEBUG 
    304 static int      ath_debug = 0; 
    305305#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,52)) 
    306306MODULE_PARM(ath_debug, "i"); 
    307307#else 
     
    347347        if (sc->sc_debug & ATH_DEBUG_KEYCACHE)                  \ 
    348348                ath_keyprint(__func__, ix, hk, mac);            \ 
    349349} while (0) 
    350 #else 
     350#else /* defined(AR_DEBUG) */ 
    351351#define IFF_DUMPPKTS(sc, _m)    netif_msg_dumppkts(&sc->sc_ic) 
    352352#define DPRINTF(sc, _m, _fmt, ...) 
    353353#define KEYPRINTF(sc, k, ix, mac) 
    354 #endif 
     354#endif /* defined(AR_DEBUG) */ 
    355355 
    356356#define ATH_SETUP_XR_VAP(sc,vap,rfilt) \ 
    357357        do { \