X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=net80211%2Fieee80211_debug.h;h=978731a578727093c12e99cfaf5839bac1c60d6e;hb=c5246021b7b8580c2aeb0a145903acc07d246ac1;hp=3f1d74fe21a0fcd00372239dda85dbdfc969b3a4;hpb=ec5e8e0a11d3cb7d34a0c3c3d026e0a51dc55609;p=madwifi%2F.git diff --git a/net80211/ieee80211_debug.h b/net80211/ieee80211_debug.h index 3f1d74f..978731a 100644 --- a/net80211/ieee80211_debug.h +++ b/net80211/ieee80211_debug.h @@ -40,7 +40,7 @@ /* Set to true if ANY sc has skb debugging on */ extern int ath_debug_global; enum { - GLOBAL_DEBUG_SKB_REF = 0x00000040, /* SKB referernce counting */ + GLOBAL_DEBUG_SKB_REF = 0x00000040, /* SKB reference counting */ GLOBAL_DEBUG_SKB = 0x40000000, /* SKB usage/leak debugging, must match ATH_DEBUG_SKB */ }; @@ -78,7 +78,7 @@ enum { #ifdef IEEE80211_DEBUG #define ieee80211_msg_is_reported(_vap, m) \ - (!!(((_vap)->iv_debug) & (m))) + (!!(((_vap)->iv_debug | (_vap)->iv_ic->ic_debug) & (m))) #define IEEE80211_DPRINTF(_vap, _m, _fmt, ...) do { \ if (ieee80211_msg_is_reported(_vap, _m)) \ ieee80211_note(_vap, _fmt, __VA_ARGS__); \ @@ -119,6 +119,7 @@ void ieee80211_note_frame(struct ieee80211vap *, #define ieee80211_msg_assoc(_vap) \ ieee80211_msg_is_reported(_vap, IEEE80211_MSG_ASSOC) #else /* IEEE80211_DEBUG */ +#define ieee80211_msg_is_reported(_vap, _m) (0) #define IEEE80211_DPRINTF(_vap, _m, _fmt, ...) #define IEEE80211_NOTE(_vap, _m, _wh, _fmt, ...) #define IEEE80211_NOTE_FRAME(_vap, _m, _wh, _fmt, ...)