diff options
Diffstat (limited to 'net/mac80211/debugfs.c')
-rw-r--r-- | net/mac80211/debugfs.c | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c index 883996b2f99f..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 | ||
100 | static 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 | |||
109 | static 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 | |||
127 | static 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 | |||
134 | static ssize_t uapsd_queues_read(struct file *file, char __user *user_buf, | 100 | static 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 | { |
@@ -190,7 +156,7 @@ static ssize_t uapsd_max_sp_len_write(struct file *file, | |||
190 | return -EFAULT; | 156 | return -EFAULT; |
191 | buf[len] = '\0'; | 157 | buf[len] = '\0'; |
192 | 158 | ||
193 | ret = strict_strtoul(buf, 0, &val); | 159 | ret = kstrtoul(buf, 0, &val); |
194 | 160 | ||
195 | if (ret) | 161 | if (ret) |
196 | return -EINVAL; | 162 | return -EINVAL; |
@@ -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); |