netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac80211:  Add power to debugfs.
@ 2011-02-15 21:04 greearb
  2011-02-15 21:08 ` Ben Greear
  0 siblings, 1 reply; 2+ messages in thread
From: greearb @ 2011-02-15 21:04 UTC (permalink / raw)
  To: netdev; +Cc: Ben Greear

From: Ben Greear <greearb@candelatech.com>

Signed-off-by: Ben Greear <greearb@candelatech.com>
---
:100644 100644 1f02e59... 51f0d78... M	net/mac80211/debugfs.c
 net/mac80211/debugfs.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c
index 1f02e59..51f0d78 100644
--- a/net/mac80211/debugfs.c
+++ b/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);
 
-- 
1.7.2.3


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

* Re: [PATCH] mac80211:  Add power to debugfs.
  2011-02-15 21:04 [PATCH] mac80211: Add power to debugfs greearb
@ 2011-02-15 21:08 ` Ben Greear
  0 siblings, 0 replies; 2+ messages in thread
From: Ben Greear @ 2011-02-15 21:08 UTC (permalink / raw)
  To: greearb; +Cc: netdev

On 02/15/2011 01:04 PM, greearb@candelatech.com wrote:
> From: Ben Greear<greearb@candelatech.com>

Bleh..wrong mailing list..sorry.

Ben

>
> Signed-off-by: Ben Greear<greearb@candelatech.com>
> ---
> :100644 100644 1f02e59... 51f0d78... M	net/mac80211/debugfs.c
>   net/mac80211/debugfs.c |    6 ++++++
>   1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c
> index 1f02e59..51f0d78 100644
> --- a/net/mac80211/debugfs.c
> +++ b/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);
>


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


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

end of thread, other threads:[~2011-02-15 21:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-15 21:04 [PATCH] mac80211: Add power to debugfs greearb
2011-02-15 21:08 ` Ben Greear

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).