]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/wireless/ath/debug.h
ath5k: fix build break from "ath5k: Print out opmode in debugfs"
[net-next-2.6.git] / drivers / net / wireless / ath / debug.h
index a3a5a628d24dc5c802f422441fde2e7fae90808c..64e4af2c2887338b597412421f717099ff5bc078 100644 (file)
@@ -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 */