diff options
Diffstat (limited to 'drivers/net/wireless/ath/debug.c')
-rw-r--r-- | drivers/net/wireless/ath/debug.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/debug.c b/drivers/net/wireless/ath/debug.c index 53e77bd131b9..dacfb234f491 100644 --- a/drivers/net/wireless/ath/debug.c +++ b/drivers/net/wireless/ath/debug.c | |||
@@ -30,3 +30,32 @@ void ath_print(struct ath_common *common, int dbg_mask, const char *fmt, ...) | |||
30 | va_end(args); | 30 | va_end(args); |
31 | } | 31 | } |
32 | EXPORT_SYMBOL(ath_print); | 32 | EXPORT_SYMBOL(ath_print); |
33 | |||
34 | const char *ath_opmode_to_string(enum nl80211_iftype opmode) | ||
35 | { | ||
36 | switch (opmode) { | ||
37 | case NL80211_IFTYPE_UNSPECIFIED: | ||
38 | return "UNSPEC"; | ||
39 | case NL80211_IFTYPE_ADHOC: | ||
40 | return "ADHOC"; | ||
41 | case NL80211_IFTYPE_STATION: | ||
42 | return "STATION"; | ||
43 | case NL80211_IFTYPE_AP: | ||
44 | return "AP"; | ||
45 | case NL80211_IFTYPE_AP_VLAN: | ||
46 | return "AP-VLAN"; | ||
47 | case NL80211_IFTYPE_WDS: | ||
48 | return "WDS"; | ||
49 | case NL80211_IFTYPE_MONITOR: | ||
50 | return "MONITOR"; | ||
51 | case NL80211_IFTYPE_MESH_POINT: | ||
52 | return "MESH"; | ||
53 | case NL80211_IFTYPE_P2P_CLIENT: | ||
54 | return "P2P-CLIENT"; | ||
55 | case NL80211_IFTYPE_P2P_GO: | ||
56 | return "P2P-GO"; | ||
57 | default: | ||
58 | return "UNKNOWN"; | ||
59 | } | ||
60 | } | ||
61 | EXPORT_SYMBOL(ath_opmode_to_string); | ||