mac80211: Add power to debugfs.
Subsystems (3)
PATCH 1/1 mac80211: Add power to debugfs.
From: Ben Greear <[email protected]>
Signed-off-by Ben Greear <[email protected]>
---
:100644 100644 1f02e59... 51f0d78... M net/mac80211/debugfs.c
net/mac80211/debugfs.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
net/mac80211/debugfs.c +6 -0
@@ -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);
Signature · 1 line
1.7.2.3
Quoted 1 line · On 02/15/2011 01:04 PM, [email protected] wrote:
From: Ben Greear<[email protected]>
Bleh..wrong mailing list..sorry.
Ben
Quoted 31 lines
Signed-off-by Ben Greear<[email protected]>---
:100644 100644 1f02e59... 51f0d78... Mnet/mac80211/debugfs.cnet/mac80211/debugfs.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)net/mac80211/debugfs.c +6
-0@@ -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);
Signature · 2 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com