summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/debug.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-10-12 11:07:44 -0700
committerJohn W. Linville <linville@tuxdriver.com>2010-10-12 16:05:30 -0400
commit908ebfb95d16bdf7f5f37ad911ccd9b7350ba780 (patch)
tree4a11c71816c2c545e8beabc4cc5c64d713d4f83e /drivers/net/wireless/ath/debug.h
parentcfd8e12f42746df396ecbdf7a1d8e92e8e4dbb97 (diff)
ath5k: fix build break from "ath5k: Print out opmode in debugfs"
Also improve ath_opmode_to_string usage by having it return UNKNOWN rather than NULL in the event of failure to map the opmode value to a representative string. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/debug.h')
-rw-r--r--drivers/net/wireless/ath/debug.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/debug.h b/drivers/net/wireless/ath/debug.h
index a3a5a628d24..64e4af2c288 100644
--- a/drivers/net/wireless/ath/debug.h
+++ b/drivers/net/wireless/ath/debug.h
@@ -78,6 +78,13 @@ ath_print(struct ath_common *common, int dbg_mask, const char *fmt, ...)
#endif /* CONFIG_ATH_DEBUG */
/** Returns string describing opmode, or NULL if unknown mode. */
+#ifdef CONFIG_ATH_DEBUG
const char *ath_opmode_to_string(enum nl80211_iftype opmode);
+#else
+static inline const char *ath_opmode_to_string(enum nl80211_iftype opmode)
+{
+ return "UNKNOWN";
+}
+#endif
#endif /* ATH_DEBUG_H */