Commit 9e99a127 authored by Johannes Berg's avatar Johannes Berg

mac80211: remove freq/chantype from debugfs

You can now get these values through iw, and
they conflict with multi-channel work.
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent e31583cd
...@@ -63,8 +63,6 @@ DEBUGFS_READONLY_FILE(user_power, "%d", ...@@ -63,8 +63,6 @@ DEBUGFS_READONLY_FILE(user_power, "%d",
local->user_power_level); local->user_power_level);
DEBUGFS_READONLY_FILE(power, "%d", DEBUGFS_READONLY_FILE(power, "%d",
local->hw.conf.power_level); local->hw.conf.power_level);
DEBUGFS_READONLY_FILE(frequency, "%d",
local->hw.conf.channel->center_freq);
DEBUGFS_READONLY_FILE(total_ps_buffered, "%d", DEBUGFS_READONLY_FILE(total_ps_buffered, "%d",
local->total_ps_buffered); local->total_ps_buffered);
DEBUGFS_READONLY_FILE(wep_iv, "%#08x", DEBUGFS_READONLY_FILE(wep_iv, "%#08x",
...@@ -91,33 +89,6 @@ static const struct file_operations reset_ops = { ...@@ -91,33 +89,6 @@ static const struct file_operations reset_ops = {
.llseek = noop_llseek, .llseek = noop_llseek,
}; };
static ssize_t channel_type_read(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{
struct ieee80211_local *local = file->private_data;
const char *buf;
switch (local->hw.conf.channel_type) {
case NL80211_CHAN_NO_HT:
buf = "no ht\n";
break;
case NL80211_CHAN_HT20:
buf = "ht20\n";
break;
case NL80211_CHAN_HT40MINUS:
buf = "ht40-\n";
break;
case NL80211_CHAN_HT40PLUS:
buf = "ht40+\n";
break;
default:
buf = "???";
break;
}
return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf));
}
static ssize_t hwflags_read(struct file *file, char __user *user_buf, static ssize_t hwflags_read(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos) size_t count, loff_t *ppos)
{ {
...@@ -205,7 +176,6 @@ static ssize_t queues_read(struct file *file, char __user *user_buf, ...@@ -205,7 +176,6 @@ static ssize_t queues_read(struct file *file, char __user *user_buf,
} }
DEBUGFS_READONLY_FILE_OPS(hwflags); DEBUGFS_READONLY_FILE_OPS(hwflags);
DEBUGFS_READONLY_FILE_OPS(channel_type);
DEBUGFS_READONLY_FILE_OPS(queues); DEBUGFS_READONLY_FILE_OPS(queues);
/* statistics stuff */ /* statistics stuff */
...@@ -272,12 +242,10 @@ void debugfs_hw_add(struct ieee80211_local *local) ...@@ -272,12 +242,10 @@ void debugfs_hw_add(struct ieee80211_local *local)
local->debugfs.keys = debugfs_create_dir("keys", phyd); local->debugfs.keys = debugfs_create_dir("keys", phyd);
DEBUGFS_ADD(frequency);
DEBUGFS_ADD(total_ps_buffered); DEBUGFS_ADD(total_ps_buffered);
DEBUGFS_ADD(wep_iv); DEBUGFS_ADD(wep_iv);
DEBUGFS_ADD(queues); DEBUGFS_ADD(queues);
DEBUGFS_ADD_MODE(reset, 0200); DEBUGFS_ADD_MODE(reset, 0200);
DEBUGFS_ADD(channel_type);
DEBUGFS_ADD(hwflags); DEBUGFS_ADD(hwflags);
DEBUGFS_ADD(user_power); DEBUGFS_ADD(user_power);
DEBUGFS_ADD(power); DEBUGFS_ADD(power);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment