2 * Minimal debug/trace/assert driver definitions for
3 * Broadcom 802.11 Networking Adapter.
5 * Copyright (C) 1999-2011, Broadcom Corporation
7 * Unless you and Broadcom execute a separate written software license
8 * agreement governing use of this software, this software is licensed to you
9 * under the terms of the GNU General Public License version 2 (the "GPL"),
10 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
11 * following added to such license:
13 * As a special exception, the copyright holders of this software give you
14 * permission to link this software with independent modules, and to copy and
15 * distribute the resulting executable under terms of your choice, provided that
16 * you also meet, for each linked independent module, the terms and conditions of
17 * the license of that module. An independent module is a module which is not
18 * derived from this software. The special exception does not apply to any
19 * modifications of the software.
21 * Notwithstanding the above, under no circumstances may you combine this
22 * software in any way with any other Broadcom software provided under a license
23 * other than the GPL, without Broadcom's express prior written consent.
25 * $Id: wl_dbg.h,v 1.115.6.3 2010-12-15 21:42:23 $
32 /* wl_msg_level is a bit vector with defs in wlioctl.h */
33 extern uint32 wl_msg_level;
34 extern uint32 wl_msg_level2;
36 #define WL_PRINT(args) printf args
39 /* To disable a message completely ... until you need it again */
42 #define WL_ERROR(args)
43 #define WL_TRACE(args)
44 #ifndef LINUX_POSTMOGRIFY_REMOVAL
46 #define WL_PRHDRS(i, p, f, t, r, l) wlc_print_hdrs(i, p, f, t, r, l)
48 #define WL_PRHDRS(i, p, f, t, r, l)
51 #define WL_PRPKT(m, b, n) prhex(m, b, n)
53 #define WL_PRPKT(m, b, n)
56 #define WL_INFORM(args) WL_PRINT(args)
58 #define WL_INFORM(args)
62 #define WL_OID(args) WL_PRINT(args)
68 #define WL_ASSOC(args) WL_PRINT(args)
70 #define WL_ASSOC(args)
72 #define WL_PRUSR(m, b, n)
74 #define WL_PS(args) WL_PRINT(args)
82 #define WL_WSEC(args) WL_PRINT(args)
83 #define WL_WSEC_DUMP(args) WL_PRINT(args)
86 #define WL_WSEC_DUMP(args)
89 #define WL_REGULATORY(args)
92 #define WL_MPC(args) WL_PRINT(args)
96 #define WL_APSTA(args)
97 #define WL_APSTA_UPDN(args)
98 #define WL_APSTA_BCN(args)
99 #define WL_APSTA_TX(args)
100 #define WL_APSTA_RX(args)
101 #define WL_APSTA_TSF(args)
102 #define WL_APSTA_BSSID(args)
104 #define WL_MBSS(args)
105 #define WL_PROTO(args)
108 #define WL_AMSDU(args)
109 #define WL_AMPDU(args)
110 #define WL_FFPLD(args)
111 #define WL_MCHAN(args)
113 /* Define WLMSG_DFS automatically for WLTEST builds */
116 #define WL_DFS(args) do {if (wl_msg_level & WL_DFS_VAL) WL_PRINT(args);} while (0)
117 #else /* WLMSG_DFS */
119 #endif /* WLMSG_DFS */
120 #define WL_WOWL(args)
122 #define WL_ASSOC_OR_DPT(args)
124 #define WL_SCAN(args) WL_PRINT(args)
126 #define WL_SCAN(args)
128 #define WL_COEX(args)
129 #define WL_RTDC(w, s, i, j)
130 #define WL_RTDC2(w, s, i, j)
131 #define WL_CHANINT(args)
133 #define WL_BTA(args) WL_PRINT(args)
139 #define WL_ERROR_ON() 0
140 #define WL_TRACE_ON() 0
142 #define WL_PRHDRS_ON() 1
144 #define WL_PRHDRS_ON() 0
147 #define WL_PRPKT_ON() 1
149 #define WL_PRPKT_ON() 0
152 #define WL_INFORM_ON() 1
154 #define WL_INFORM_ON() 0
157 #define WL_OID_ON() 1
159 #define WL_OID_ON() 0
161 #define WL_TMP_ON() 0
162 #define WL_RATE_ON() 0
164 #define WL_ASSOC_ON() 1
166 #define WL_ASSOC_ON() 0
168 #define WL_PORT_ON() 0
170 #define WL_WSEC_ON() 1
171 #define WL_WSEC_DUMP_ON() 1
173 #define WL_WSEC_ON() 0
174 #define WL_WSEC_DUMP_ON() 0
177 #define WL_MPC_ON() 1
179 #define WL_MPC_ON() 0
181 #define WL_REGULATORY_ON() 0
183 #define WL_APSTA_ON() 0
185 #define WL_MBSS_ON() 0
187 #define WL_DFS_ON() 1
188 #else /* WLMSG_DFS */
189 #define WL_DFS_ON() 0
190 #endif /* WLMSG_DFS */
191 #define WL_DPT_ON() 0
193 #define WL_SCAN_ON() 1
195 #define WL_SCAN_ON() 0
198 #define WL_BTA_ON() 1
200 #define WL_BTA_ON() 0
202 #define WL_P2P_ON() 0
203 #define WL_MCHAN_ON() 0
205 #define WL_AMPDU_UPDN(args)
206 #define WL_AMPDU_RX(args)
207 #define WL_AMPDU_ERR(args)
208 #define WL_AMPDU_TX(args)
209 #define WL_AMPDU_CTL(args)
210 #define WL_AMPDU_HW(args)
211 #define WL_AMPDU_HWTXS(args)
212 #define WL_AMPDU_HWDBG(args)
213 #define WL_AMPDU_ERR_ON() 0
214 #define WL_AMPDU_HW_ON() 0
215 #define WL_AMPDU_HWTXS_ON() 0
217 #endif /* LINUX_POSTMOGRIFY_REMOVAL */
220 extern uint32 wl_msg_level;
221 extern uint32 wl_msg_level2;
222 #endif /* _wl_dbg_h_ */