From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Greear Subject: Re: [PATCH] mac80211: Add power to debugfs. Date: Tue, 15 Feb 2011 13:08:21 -0800 Message-ID: <4D5AEB45.9080004@candelatech.com> References: <1297803874-9109-1-git-send-email-greearb@candelatech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: greearb@candelatech.com Return-path: Received: from mail.candelatech.com ([208.74.158.172]:38815 "EHLO ns3.lanforge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750991Ab1BOVIZ (ORCPT ); Tue, 15 Feb 2011 16:08:25 -0500 In-Reply-To: <1297803874-9109-1-git-send-email-greearb@candelatech.com> Sender: netdev-owner@vger.kernel.org List-ID: On 02/15/2011 01:04 PM, greearb@candelatech.com wrote: > From: Ben Greear Bleh..wrong mailing list..sorry. Ben > > Signed-off-by: Ben Greear > --- > :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 Candela Technologies Inc http://www.candelatech.com