* Minimal debug/trace/assert driver definitions for
* Broadcom 802.11 Networking Adapter.
*
- * $Copyright Open Broadcom Corporation$
+ * Copyright (C) 1999-2016, Broadcom Corporation
+ *
+ * Unless you and Broadcom execute a separate written software license
+ * agreement governing use of this software, this software is licensed to you
+ * under the terms of the GNU General Public License version 2 (the "GPL"),
+ * available at http://www.broadcom.com/licenses/GPLv2.php, with the
+ * following added to such license:
+ *
+ * As a special exception, the copyright holders of this software give you
+ * permission to link this software with independent modules, and to copy and
+ * distribute the resulting executable under terms of your choice, provided that
+ * you also meet, for each linked independent module, the terms and conditions of
+ * the license of that module. An independent module is a module which is not
+ * derived from this software. The special exception does not apply to any
+ * modifications of the software.
+ *
+ * Notwithstanding the above, under no circumstances may you combine this
+ * software in any way with any other Broadcom software provided under a license
+ * other than the GPL, without Broadcom's express prior written consent.
*
- * $Id: wl_dbg.h 472390 2014-04-23 23:32:01Z $
+ *
+ * <<Broadcom-WL-IPTag/Open:>>
+ *
+ * $Id: wl_dbg.h 519338 2014-12-05 21:23:30Z $
*/
#define WL_TIMESTAMP()
-#if 0 && (VERSION_MAJOR > 9)
-extern int osl_printf(const char *fmt, ...);
-#include <IOKit/apple80211/IO8Log.h>
-#define WL_PRINT(args) do { osl_printf args; } while (0)
-#define RELEASE_PRINT(args) do { WL_PRINT(args); IO8Log args; } while (0)
-#else
#define WL_PRINT(args) do { WL_TIMESTAMP(); printf args; } while (0)
-#endif
#if defined(EVENT_LOG_COMPILE) && defined(WLMSG_SRSCAN)
#define _WL_SRSCAN(fmt, ...) EVENT_LOG(EVENT_LOG_TAG_SRSCAN, fmt, ##__VA_ARGS__)
#define WL_MCNX(args)
#define WL_PROT(args)
#define WL_PSTA(args)
+#define WL_WFDS(m, b, n)
#define WL_TRF_MGMT(args)
#define WL_L2FILTER(args)
#define WL_MQ(args)
#define WL_TXBF(args)
#define WL_P2PO(args)
-#define WL_NET_DETECT(args)
#define WL_ROAM(args)
#define WL_WNM(args)
#define WL_WSEC(args)
#define WL_WSEC_DUMP(args)
#define WL_PCIE(args)
-#define WL_CHANLOG(w, s, i, j)
+#define WL_TSLOG(w, s, i, j)
+#define WL_FBT(args)
#define WL_ERROR_ON() (wl_msg_level & WL_ERROR_VAL)
#define WL_TRACE_ON() 0
#define WL_L2FILTER_ON() 0
#define WL_TXBF_ON() 0
#define WL_P2PO_ON() 0
-#define WL_CHANLOG_ON() 0
-#define WL_NET_DETECT_ON() 0
+#define WL_TSLOG_ON() 0
#define WL_WNM_ON() 0
#define WL_PCIE_ON() 0
#define WL_ERROR(args)
#define WL_TRACE(args)
-#ifndef LINUX_POSTMOGRIFY_REMOVAL
-#ifdef WLMSG_PRHDRS
-#define WL_PRHDRS_MSG(args) WL_PRINT(args)
-#define WL_PRHDRS(i, p, f, t, r, l) wlc_print_hdrs(i, p, f, t, r, l)
-#else
-#define WL_PRHDRS_MSG(args)
-#define WL_PRHDRS(i, p, f, t, r, l)
-#endif
-#ifdef WLMSG_PRPKT
-#define WL_PRPKT(m, b, n) prhex(m, b, n)
-#else
-#define WL_PRPKT(m, b, n)
-#endif
-#ifdef WLMSG_INFORM
-#define WL_INFORM(args) WL_PRINT(args)
-#else
-#define WL_INFORM(args)
-#endif
-#define WL_TMP(args)
-#ifdef WLMSG_OID
-#define WL_OID(args) WL_PRINT(args)
-#else
-#define WL_OID(args)
-#endif
-#define WL_RATE(args)
-#ifdef WLMSG_ASSOC
-#define WL_ASSOC(args) WL_PRINT(args)
-#else
-#define WL_ASSOC(args)
-#endif
-#define WL_PRUSR(m, b, n)
-#ifdef WLMSG_PS
-#define WL_PS(args) WL_PRINT(args)
-#else
-#define WL_PS(args)
-#endif
-#ifdef WLMSG_ROAM
-#define WL_ROAM(args) WL_PRINT(args)
-#else
-#define WL_ROAM(args)
-#endif
-#define WL_PORT(args)
-#define WL_DUAL(args)
-#define WL_REGULATORY(args)
-
-#ifdef WLMSG_MPC
-#define WL_MPC(args) WL_PRINT(args)
-#else
-#define WL_MPC(args)
-#endif
-#define WL_APSTA(args)
-#define WL_APSTA_BCN(args)
-#define WL_APSTA_TX(args)
-#define WL_APSTA_TSF(args)
-#define WL_APSTA_BSSID(args)
-#define WL_BA(args)
-#define WL_MBSS(args)
-#define WL_MODE_SWITCH(args)
-#define WL_PROTO(args)
-
-#define WL_CAC(args)
-#define WL_AMSDU(args)
-#define WL_AMPDU(args)
-#define WL_FFPLD(args)
-#define WL_MCHAN(args)
-
-/* Define WLMSG_DFS automatically for WLTEST builds */
-
-#ifdef WLMSG_DFS
-#define WL_DFS(args) do {if (wl_msg_level & WL_DFS_VAL) WL_PRINT(args);} while (0)
-#else /* WLMSG_DFS */
-#define WL_DFS(args)
-#endif /* WLMSG_DFS */
-#define WL_WOWL(args)
-#ifdef WLMSG_SCAN
-#define WL_SCAN(args) WL_PRINT(args)
-#else
-#define WL_SCAN(args)
-#endif
-#define WL_COEX(args)
-#define WL_RTDC(w, s, i, j)
-#define WL_RTDC2(w, s, i, j)
-#define WL_CHANINT(args)
-#ifdef WLMSG_BTA
-#define WL_BTA(args) WL_PRINT(args)
-#else
-#define WL_BTA(args)
-#endif
-#define WL_WMF(args)
-#define WL_P2P(args)
-#define WL_ITFR(args)
-#define WL_TDLS(args)
-#define WL_MCNX(args)
-#define WL_PROT(args)
-#define WL_PSTA(args)
-#define WL_TBTT(args)
-#define WL_TRF_MGMT(args)
-#define WL_L2FILTER(args)
-#define WL_MQ(args)
-#define WL_P2PO(args)
-#define WL_WNM(args)
-#define WL_TXBF(args)
-#define WL_CHANLOG(w, s, i, j)
-#define WL_NET_DETECT(args)
-
-#define WL_ERROR_ON() 0
-#define WL_TRACE_ON() 0
-#ifdef WLMSG_PRHDRS
-#define WL_PRHDRS_ON() 1
-#else
-#define WL_PRHDRS_ON() 0
-#endif
-#ifdef WLMSG_PRPKT
-#define WL_PRPKT_ON() 1
-#else
-#define WL_PRPKT_ON() 0
-#endif
-#ifdef WLMSG_INFORM
-#define WL_INFORM_ON() 1
-#else
-#define WL_INFORM_ON() 0
-#endif
-#ifdef WLMSG_OID
-#define WL_OID_ON() 1
-#else
-#define WL_OID_ON() 0
-#endif
-#define WL_TMP_ON() 0
-#define WL_RATE_ON() 0
-#ifdef WLMSG_ASSOC
-#define WL_ASSOC_ON() 1
-#else
-#define WL_ASSOC_ON() 0
-#endif
-#define WL_PORT_ON() 0
-#ifdef WLMSG_WSEC
-#define WL_WSEC_ON() 1
-#define WL_WSEC_DUMP_ON() 1
-#else
-#define WL_WSEC_ON() 0
-#define WL_WSEC_DUMP_ON() 0
-#endif
-#ifdef WLMSG_MPC
-#define WL_MPC_ON() 1
-#else
-#define WL_MPC_ON() 0
-#endif
-#define WL_REGULATORY_ON() 0
-
-#define WL_APSTA_ON() 0
-#define WL_BA_ON() 0
-#define WL_MBSS_ON() 0
-#define WL_MODE_SWITCH_ON() 0
-#ifdef WLMSG_DFS
-#define WL_DFS_ON() 1
-#else /* WLMSG_DFS */
-#define WL_DFS_ON() 0
-#endif /* WLMSG_DFS */
-#ifdef WLMSG_SCAN
-#define WL_SCAN_ON() 1
-#else
-#define WL_SCAN_ON() 0
-#endif
-#ifdef WLMSG_BTA
-#define WL_BTA_ON() 1
-#else
-#define WL_BTA_ON() 0
-#endif
-#define WL_WMF_ON() 0
-#define WL_P2P_ON() 0
-#define WL_MCHAN_ON() 0
-#define WL_TDLS_ON() 0
-#define WL_MCNX_ON() 0
-#define WL_PROT_ON() 0
-#define WL_TBTT_ON() 0
-#define WL_PWRSEL_ON() 0
-#define WL_L2FILTER_ON() 0
-#define WL_MQ_ON() 0
-#define WL_P2PO_ON() 0
-#define WL_TXBF_ON() 0
-#define WL_CHANLOG_ON() 0
-
-#define WL_AMPDU_UPDN(args)
-#define WL_AMPDU_RX(args)
-#define WL_AMPDU_ERR(args)
-#define WL_AMPDU_TX(args)
-#define WL_AMPDU_CTL(args)
-#define WL_AMPDU_HW(args)
-#define WL_AMPDU_HWTXS(args)
-#define WL_AMPDU_HWDBG(args)
-#define WL_AMPDU_STAT(args)
-#define WL_AMPDU_ERR_ON() 0
-#define WL_AMPDU_HW_ON() 0
-#define WL_AMPDU_HWTXS_ON() 0
-
-#define WL_WNM_ON() 0
-#endif /* LINUX_POSTMOGRIFY_REMOVAL */
#define WL_APSTA_UPDN(args)
#define WL_APSTA_RX(args)
#ifdef WLMSG_WSEC
#endif
#define WL_PCIE(args) do {if (wl_msg_level2 & WL_PCIE_VAL) WL_PRINT(args);} while (0)
#define WL_PCIE_ON() (wl_msg_level2 & WL_PCIE_VAL)
+#define WL_PFN(args) do {if (wl_msg_level & WL_PFN_VAL) WL_PRINT(args);} while (0)
+#define WL_PFN_ON() (wl_msg_level & WL_PFN_VAL)
#endif
extern uint32 wl_msg_level;