提交 83bdf2a1 编写于 作者: B Ben Greear 提交者: John W. Linville

mac80211: Add power to debugfs.

Signed-off-by: NBen Greear <greearb@candelatech.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 fe0b7c61
...@@ -60,6 +60,10 @@ static const struct file_operations name## _ops = { \ ...@@ -60,6 +60,10 @@ static const struct file_operations name## _ops = { \
debugfs_create_file(#name, mode, phyd, local, &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", DEBUGFS_READONLY_FILE(frequency, "%d",
local->hw.conf.channel->center_freq); local->hw.conf.channel->center_freq);
DEBUGFS_READONLY_FILE(total_ps_buffered, "%d", DEBUGFS_READONLY_FILE(total_ps_buffered, "%d",
...@@ -391,6 +395,8 @@ void debugfs_hw_add(struct ieee80211_local *local) ...@@ -391,6 +395,8 @@ void debugfs_hw_add(struct ieee80211_local *local)
DEBUGFS_ADD(uapsd_queues); DEBUGFS_ADD(uapsd_queues);
DEBUGFS_ADD(uapsd_max_sp_len); DEBUGFS_ADD(uapsd_max_sp_len);
DEBUGFS_ADD(channel_type); DEBUGFS_ADD(channel_type);
DEBUGFS_ADD(user_power);
DEBUGFS_ADD(power);
statsd = debugfs_create_dir("statistics", phyd); statsd = debugfs_create_dir("statistics", phyd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册