From 499b9bb6e409a5cff6db558effe11c2189a46fd2 Mon Sep 17 00:00:00 2001 From: Ben Greear Date: Tue, 15 Feb 2011 13:11:22 -0800 Subject: [PATCH] --- yaml --- r: 237419 b: refs/heads/master c: 83bdf2a17279bd6ee3d0f5c0f086ebe06644109d h: refs/heads/master i: 237417: 85e474b13c6502a87d7045544876d1f8dcfe0867 237415: ca4592e28143ea4a0fdb7a2aebcc35cc74361570 v: v3 --- [refs] | 2 +- trunk/net/mac80211/debugfs.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 0757b0ad05ba..bd84a29dcd83 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fe0b7c616ebd7d25afbb4315d0e3220b112a7b2f +refs/heads/master: 83bdf2a17279bd6ee3d0f5c0f086ebe06644109d diff --git a/trunk/net/mac80211/debugfs.c b/trunk/net/mac80211/debugfs.c index 1f02e599a318..51f0d780dafa 100644 --- a/trunk/net/mac80211/debugfs.c +++ b/trunk/net/mac80211/debugfs.c @@ -60,6 +60,10 @@ static const struct file_operations name## _ops = { \ debugfs_create_file(#name, mode, phyd, local, &name## _ops); +DEBUGFS_READONLY_FILE(user_power, "%d", + local->user_power_level); +DEBUGFS_READONLY_FILE(power, "%d", + local->hw.conf.power_level); DEBUGFS_READONLY_FILE(frequency, "%d", local->hw.conf.channel->center_freq); DEBUGFS_READONLY_FILE(total_ps_buffered, "%d", @@ -391,6 +395,8 @@ void debugfs_hw_add(struct ieee80211_local *local) DEBUGFS_ADD(uapsd_queues); DEBUGFS_ADD(uapsd_max_sp_len); DEBUGFS_ADD(channel_type); + DEBUGFS_ADD(user_power); + DEBUGFS_ADD(power); statsd = debugfs_create_dir("statistics", phyd);