summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mwifiex/debugfs.c
diff options
context:
space:
mode:
authorXinming Hu <huxm@marvell.com>2014-12-23 19:14:05 +0530
committerKalle Valo <kvalo@codeaurora.org>2015-01-06 20:53:23 +0200
commit72df63100d54bc801700de2c6f525d0fd8bfd799 (patch)
tree1065b78af2b1ac873d4d0d93eafd8771d4428b96 /drivers/net/wireless/mwifiex/debugfs.c
parentc0c3163a7213107478804ad92ee3da69f12fe346 (diff)
mwifiex: report tdls peers in debugfs
This patch add provision to show TDLS peer table in debugfs file. Signed-off-by: Xinming Hu <huxm@marvell.com> Signed-off-by: Cathy Luo <cluo@marvell.com> Signed-off-by: Avinash Patil <patila@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/mwifiex/debugfs.c')
-rw-r--r--drivers/net/wireless/mwifiex/debugfs.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/debugfs.c b/drivers/net/wireless/mwifiex/debugfs.c
index 2713f7acd35e..b50603276ecb 100644
--- a/drivers/net/wireless/mwifiex/debugfs.c
+++ b/drivers/net/wireless/mwifiex/debugfs.c
@@ -493,6 +493,15 @@ mwifiex_debug_read(struct file *file, char __user *ubuf,
}
}
+ if (info.tdls_peer_num) {
+ p += sprintf(p, "TDLS peer table:\n");
+ for (i = 0; i < info.tdls_peer_num; i++) {
+ p += sprintf(p, "peer = %pM",
+ info.tdls_list[i].peer_addr);
+ p += sprintf(p, "\n");
+ }
+ }
+
ret = simple_read_from_buffer(ubuf, count, ppos, (char *) page,
(unsigned long) p - page);