linux/net/mac80211/debug.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Portions
 * Copyright (C) 2022 - 2023 Intel Corporation
 */
#ifndef __MAC80211_DEBUG_H
#define __MAC80211_DEBUG_H
#include <net/cfg80211.h>

#ifdef CONFIG_MAC80211_OCB_DEBUG
#define MAC80211_OCB_DEBUG
#else
#define MAC80211_OCB_DEBUG
#endif

#ifdef CONFIG_MAC80211_IBSS_DEBUG
#define MAC80211_IBSS_DEBUG
#else
#define MAC80211_IBSS_DEBUG
#endif

#ifdef CONFIG_MAC80211_PS_DEBUG
#define MAC80211_PS_DEBUG
#else
#define MAC80211_PS_DEBUG
#endif

#ifdef CONFIG_MAC80211_HT_DEBUG
#define MAC80211_HT_DEBUG
#else
#define MAC80211_HT_DEBUG
#endif

#ifdef CONFIG_MAC80211_MPL_DEBUG
#define MAC80211_MPL_DEBUG
#else
#define MAC80211_MPL_DEBUG
#endif

#ifdef CONFIG_MAC80211_MPATH_DEBUG
#define MAC80211_MPATH_DEBUG
#else
#define MAC80211_MPATH_DEBUG
#endif

#ifdef CONFIG_MAC80211_MHWMP_DEBUG
#define MAC80211_MHWMP_DEBUG
#else
#define MAC80211_MHWMP_DEBUG
#endif

#ifdef CONFIG_MAC80211_MESH_SYNC_DEBUG
#define MAC80211_MESH_SYNC_DEBUG
#else
#define MAC80211_MESH_SYNC_DEBUG
#endif

#ifdef CONFIG_MAC80211_MESH_CSA_DEBUG
#define MAC80211_MESH_CSA_DEBUG
#else
#define MAC80211_MESH_CSA_DEBUG
#endif

#ifdef CONFIG_MAC80211_MESH_PS_DEBUG
#define MAC80211_MESH_PS_DEBUG
#else
#define MAC80211_MESH_PS_DEBUG
#endif

#ifdef CONFIG_MAC80211_TDLS_DEBUG
#define MAC80211_TDLS_DEBUG
#else
#define MAC80211_TDLS_DEBUG
#endif

#ifdef CONFIG_MAC80211_STA_DEBUG
#define MAC80211_STA_DEBUG
#else
#define MAC80211_STA_DEBUG
#endif

#ifdef CONFIG_MAC80211_MLME_DEBUG
#define MAC80211_MLME_DEBUG
#else
#define MAC80211_MLME_DEBUG
#endif

#ifdef CONFIG_MAC80211_MESSAGE_TRACING
void __sdata_info(const char *fmt, ...) __printf(1, 2);
void __sdata_dbg(bool print, const char *fmt, ...) __printf(2, 3);
void __sdata_err(const char *fmt, ...) __printf(1, 2);
void __wiphy_dbg(struct wiphy *wiphy, bool print, const char *fmt, ...)
	__printf(3, 4);

#define _sdata_info(sdata, fmt, ...)
#define _sdata_dbg(print, sdata, fmt, ...)
#define _sdata_err(sdata, fmt, ...)
#define _wiphy_dbg(print, wiphy, fmt, ...)
#else
#define _sdata_info

#define _sdata_dbg

#define _sdata_err

#define _wiphy_dbg
#endif

#define sdata_info(sdata, fmt, ...)
#define sdata_err(sdata, fmt, ...)
#define sdata_dbg(sdata, fmt, ...)

#define link_info(link, fmt, ...)
#define link_err(link, fmt, ...)
#define _link_id_dbg(print, sdata, link_id, fmt, ...)
#define link_dbg(link, fmt, ...)

#define ht_dbg(sdata, fmt, ...)

#define ht_dbg_ratelimited(sdata, fmt, ...)

#define ocb_dbg(sdata, fmt, ...)

#define ibss_dbg(sdata, fmt, ...)

#define ps_dbg(sdata, fmt, ...)

#define ps_dbg_hw(hw, fmt, ...)

#define ps_dbg_ratelimited(sdata, fmt, ...)

#define mpl_dbg(sdata, fmt, ...)

#define mpath_dbg(sdata, fmt, ...)

#define mhwmp_dbg(sdata, fmt, ...)

#define msync_dbg(sdata, fmt, ...)

#define mcsa_dbg(sdata, fmt, ...)

#define mps_dbg(sdata, fmt, ...)

#define tdls_dbg(sdata, fmt, ...)

#define sta_dbg(sdata, fmt, ...)

#define mlme_dbg(sdata, fmt, ...)
#define mlme_link_id_dbg(sdata, link_id, fmt, ...)

#define mlme_dbg_ratelimited(sdata, fmt, ...)

#endif /* __MAC80211_DEBUG_H */