summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath5k/debug.c
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2010-10-08 09:43:29 -0700
committerJohn W. Linville <linville@tuxdriver.com>2010-10-11 15:04:19 -0400
commit92c68a66a8f73c51f062ae8cae958c86a21fea78 (patch)
tree5bb9371f703dcec76ad27b067e1098c1fb5d3ee6 /drivers/net/wireless/ath/ath5k/debug.c
parent5a5c731aa59cc2c44ca20f45b1a577cd4f5435e2 (diff)
ath5k: Print out opmode in debugfs.
Helps debug multi-VIF scenarios. Signed-off-by: Ben Greear <greearb@candelatech.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/debug.c')
-rw-r--r--drivers/net/wireless/ath/ath5k/debug.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath5k/debug.c b/drivers/net/wireless/ath/ath5k/debug.c
index c2d549f871f9..a342a9da1b3e 100644
--- a/drivers/net/wireless/ath/ath5k/debug.c
+++ b/drivers/net/wireless/ath/ath5k/debug.c
@@ -60,6 +60,7 @@
#include "base.h"
#include "debug.h"
+#include "../debug.h"
static unsigned int ath5k_debug;
module_param_named(debug, ath5k_debug, uint, 0);
@@ -492,6 +493,7 @@ static ssize_t read_file_misc(struct file *file, char __user *user_buf,
char buf[700];
unsigned int len = 0;
u32 filt = ath5k_hw_get_rx_filter(sc->ah);
+ const char *tmp;
len += snprintf(buf+len, sizeof(buf)-len, "bssid-mask: %pM\n",
sc->bssidmask);
@@ -524,6 +526,14 @@ static ssize_t read_file_misc(struct file *file, char __user *user_buf,
else
len += snprintf(buf+len, sizeof(buf)-len, "\n");
+ tmp = ath_opmode_to_string(sc->opmode);
+ if (tmp)
+ len += snprintf(buf+len, sizeof(buf)-len, "opmode: %s\n",
+ tmp);
+ else
+ len += snprintf(buf+len, sizeof(buf)-len,
+ "opmode: UNKNOWN-%i\n", sc->opmode);
+
if (len > sizeof(buf))
len = sizeof(buf);