linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac80211: Add num_stations connected in debugfs
@ 2011-04-24 11:55 Mohammed Shafi Shajakhan
  2011-04-24 13:36 ` Johannes Berg
  0 siblings, 1 reply; 12+ messages in thread
From: Mohammed Shafi Shajakhan @ 2011-04-24 11:55 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, johannes, L.Kriara, Mohammed Shafi Shajakhan

From: Mohammed Shafi Shajakhan <mshajakhan@atheros.com>

this will be useful when the device is operating in AP/Ad-Hoc/Mesh
mode

Signed-off-by: Mohammed Shafi Shajakhan <mshajakhan@atheros.com>
---
 net/mac80211/debugfs.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c
index 0a602db..c16b81c 100644
--- a/net/mac80211/debugfs.c
+++ b/net/mac80211/debugfs.c
@@ -65,6 +65,8 @@ static const struct file_operations name## _ops = {			\
 	debugfs_create_file(#name, mode, phyd, local, &name## _ops);
 
 
+DEBUGFS_READONLY_FILE(num_stations , "%lu",
+		      local->num_sta);
 DEBUGFS_READONLY_FILE(user_power, "%d",
 		      local->user_power_level);
 DEBUGFS_READONLY_FILE(power, "%d",
@@ -460,6 +462,7 @@ void debugfs_hw_add(struct ieee80211_local *local)
 	DEBUGFS_ADD(hwflags);
 	DEBUGFS_ADD(user_power);
 	DEBUGFS_ADD(power);
+	DEBUGFS_ADD(num_stations);
 
 	statsd = debugfs_create_dir("statistics", phyd);
 
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-04-26 12:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-24 11:55 [PATCH] mac80211: Add num_stations connected in debugfs Mohammed Shafi Shajakhan
2011-04-24 13:36 ` Johannes Berg
2011-04-24 14:19   ` Mohammed Shafi
2011-04-24 14:59     ` Johannes Berg
2011-04-24 15:27       ` Mohammed Shafi
2011-04-24 15:32         ` Johannes Berg
2011-04-25  4:30           ` Mohammed Shafi
2011-04-26 11:58             ` Lito Kriara
2011-04-26 12:03               ` Mohammed Shafi
2011-04-26 12:07                 ` Johannes Berg
2011-04-26 12:10                   ` Lito Kriara
2011-04-26 12:14                   ` Mohammed Shafi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).