diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/net/wireless/ath/debug.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/net/wireless/ath/debug.c')
-rw-r--r-- | drivers/net/wireless/ath/debug.c | 38 |
1 files changed, 26 insertions, 12 deletions
diff --git a/drivers/net/wireless/ath/debug.c b/drivers/net/wireless/ath/debug.c index 53e77bd131b9..5367b1086e09 100644 --- a/drivers/net/wireless/ath/debug.c +++ b/drivers/net/wireless/ath/debug.c | |||
@@ -15,18 +15,32 @@ | |||
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include "ath.h" | 17 | #include "ath.h" |
18 | #include "debug.h" | ||
19 | 18 | ||
20 | void ath_print(struct ath_common *common, int dbg_mask, const char *fmt, ...) | 19 | const char *ath_opmode_to_string(enum nl80211_iftype opmode) |
21 | { | 20 | { |
22 | va_list args; | 21 | switch (opmode) { |
23 | 22 | case NL80211_IFTYPE_UNSPECIFIED: | |
24 | if (likely(!(common->debug_mask & dbg_mask))) | 23 | return "UNSPEC"; |
25 | return; | 24 | case NL80211_IFTYPE_ADHOC: |
26 | 25 | return "ADHOC"; | |
27 | va_start(args, fmt); | 26 | case NL80211_IFTYPE_STATION: |
28 | printk(KERN_DEBUG "ath: "); | 27 | return "STATION"; |
29 | vprintk(fmt, args); | 28 | case NL80211_IFTYPE_AP: |
30 | va_end(args); | 29 | return "AP"; |
30 | case NL80211_IFTYPE_AP_VLAN: | ||
31 | return "AP-VLAN"; | ||
32 | case NL80211_IFTYPE_WDS: | ||
33 | return "WDS"; | ||
34 | case NL80211_IFTYPE_MONITOR: | ||
35 | return "MONITOR"; | ||
36 | case NL80211_IFTYPE_MESH_POINT: | ||
37 | return "MESH"; | ||
38 | case NL80211_IFTYPE_P2P_CLIENT: | ||
39 | return "P2P-CLIENT"; | ||
40 | case NL80211_IFTYPE_P2P_GO: | ||
41 | return "P2P-GO"; | ||
42 | default: | ||
43 | return "UNKNOWN"; | ||
44 | } | ||
31 | } | 45 | } |
32 | EXPORT_SYMBOL(ath_print); | 46 | EXPORT_SYMBOL(ath_opmode_to_string); |