diff options
author | Joe Perches <joe@perches.com> | 2010-10-12 14:07:44 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-10-12 16:05:30 -0400 |
commit | 908ebfb95d16bdf7f5f37ad911ccd9b7350ba780 (patch) | |
tree | 4a11c71816c2c545e8beabc4cc5c64d713d4f83e /drivers/net/wireless/ath/debug.h | |
parent | cfd8e12f42746df396ecbdf7a1d8e92e8e4dbb97 (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.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/debug.h b/drivers/net/wireless/ath/debug.h index a3a5a628d24d..64e4af2c2887 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, ...) | |||
78 | #endif /* CONFIG_ATH_DEBUG */ | 78 | #endif /* CONFIG_ATH_DEBUG */ |
79 | 79 | ||
80 | /** Returns string describing opmode, or NULL if unknown mode. */ | 80 | /** Returns string describing opmode, or NULL if unknown mode. */ |
81 | #ifdef CONFIG_ATH_DEBUG | ||
81 | const char *ath_opmode_to_string(enum nl80211_iftype opmode); | 82 | const char *ath_opmode_to_string(enum nl80211_iftype opmode); |
83 | #else | ||
84 | static inline const char *ath_opmode_to_string(enum nl80211_iftype opmode) | ||
85 | { | ||
86 | return "UNKNOWN"; | ||
87 | } | ||
88 | #endif | ||
82 | 89 | ||
83 | #endif /* ATH_DEBUG_H */ | 90 | #endif /* ATH_DEBUG_H */ |