aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/debugfs.c
diff options
context:
space:
mode:
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>2011-11-18 08:20:42 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-11-28 14:34:15 -0500
commit6fd67e937ece538e0ab766df96a9895e6fd622df (patch)
treec3c09e2d08d59f9de71d059a89a09b0716e11705 /net/mac80211/debugfs.c
parenteb1852b10593dc3ca73e02bf9ac4753a5a464905 (diff)
mac80211: remove debugfs noack test
This feature has been superseded by the NoAck per Queue feature. Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/debugfs.c')
-rw-r--r--net/mac80211/debugfs.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c
index 00cefcb493eb..90baea53e7c5 100644
--- a/net/mac80211/debugfs.c
+++ b/net/mac80211/debugfs.c
@@ -97,40 +97,6 @@ static const struct file_operations reset_ops = {
97 .llseek = noop_llseek, 97 .llseek = noop_llseek,
98}; 98};
99 99
100static ssize_t noack_read(struct file *file, char __user *user_buf,
101 size_t count, loff_t *ppos)
102{
103 struct ieee80211_local *local = file->private_data;
104
105 return mac80211_format_buffer(user_buf, count, ppos, "%d\n",
106 local->wifi_wme_noack_test);
107}
108
109static ssize_t noack_write(struct file *file,
110 const char __user *user_buf,
111 size_t count, loff_t *ppos)
112{
113 struct ieee80211_local *local = file->private_data;
114 char buf[10];
115 size_t len;
116
117 len = min(count, sizeof(buf) - 1);
118 if (copy_from_user(buf, user_buf, len))
119 return -EFAULT;
120 buf[len] = '\0';
121
122 local->wifi_wme_noack_test = !!simple_strtoul(buf, NULL, 0);
123
124 return count;
125}
126
127static const struct file_operations noack_ops = {
128 .read = noack_read,
129 .write = noack_write,
130 .open = mac80211_open_file_generic,
131 .llseek = default_llseek,
132};
133
134static ssize_t uapsd_queues_read(struct file *file, char __user *user_buf, 100static ssize_t uapsd_queues_read(struct file *file, char __user *user_buf,
135 size_t count, loff_t *ppos) 101 size_t count, loff_t *ppos)
136{ 102{
@@ -398,7 +364,6 @@ void debugfs_hw_add(struct ieee80211_local *local)
398 DEBUGFS_ADD(wep_iv); 364 DEBUGFS_ADD(wep_iv);
399 DEBUGFS_ADD(queues); 365 DEBUGFS_ADD(queues);
400 DEBUGFS_ADD_MODE(reset, 0200); 366 DEBUGFS_ADD_MODE(reset, 0200);
401 DEBUGFS_ADD(noack);
402 DEBUGFS_ADD(uapsd_queues); 367 DEBUGFS_ADD(uapsd_queues);
403 DEBUGFS_ADD(uapsd_max_sp_len); 368 DEBUGFS_ADD(uapsd_max_sp_len);
404 DEBUGFS_ADD(channel_type); 369 DEBUGFS_ADD(channel_type);