Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327667
b: refs/heads/master
c: 9e99a12
h: refs/heads/master
i:
  327665: 1060960
  327663: 12af1a4
v: v3
  • Loading branch information
Johannes Berg committed Aug 20, 2012
1 parent 80b8379 commit 1221ae6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 33 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e31583cdf0e2eb71c44b1288a2d93405f972da68
refs/heads/master: 9e99a127b5724d7a2cd9d2973b10981d56e1d647
32 changes: 0 additions & 32 deletions trunk/net/mac80211/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ 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",
local->total_ps_buffered);
DEBUGFS_READONLY_FILE(wep_iv, "%#08x",
Expand All @@ -91,33 +89,6 @@ static const struct file_operations reset_ops = {
.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,
size_t count, loff_t *ppos)
{
Expand Down Expand Up @@ -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(channel_type);
DEBUGFS_READONLY_FILE_OPS(queues);

/* statistics stuff */
Expand Down Expand Up @@ -272,12 +242,10 @@ void debugfs_hw_add(struct ieee80211_local *local)

local->debugfs.keys = debugfs_create_dir("keys", phyd);

DEBUGFS_ADD(frequency);
DEBUGFS_ADD(total_ps_buffered);
DEBUGFS_ADD(wep_iv);
DEBUGFS_ADD(queues);
DEBUGFS_ADD_MODE(reset, 0200);
DEBUGFS_ADD(channel_type);
DEBUGFS_ADD(hwflags);
DEBUGFS_ADD(user_power);
DEBUGFS_ADD(power);
Expand Down

0 comments on commit 1221ae6

Please sign in to comment.