From: Mohammed Shafi Shajakhan <mshajakhan@xxxxxxxxxxx> this will be useful when the device is operating in AP/Ad-Hoc/Mesh mode Signed-off-by: Mohammed Shafi Shajakhan <mshajakhan@xxxxxxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html