aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/debugfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/debugfs.c')
-rw-r--r--net/mac80211/debugfs.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c
index 4a4d35c750c6..b8b0ae79a743 100644
--- a/net/mac80211/debugfs.c
+++ b/net/mac80211/debugfs.c
@@ -102,7 +102,8 @@ static ssize_t tsf_write(struct file *file,
102static const struct file_operations tsf_ops = { 102static const struct file_operations tsf_ops = {
103 .read = tsf_read, 103 .read = tsf_read,
104 .write = tsf_write, 104 .write = tsf_write,
105 .open = mac80211_open_file_generic 105 .open = mac80211_open_file_generic,
106 .llseek = default_llseek,
106}; 107};
107 108
108static ssize_t reset_write(struct file *file, const char __user *user_buf, 109static ssize_t reset_write(struct file *file, const char __user *user_buf,
@@ -121,6 +122,7 @@ static ssize_t reset_write(struct file *file, const char __user *user_buf,
121static const struct file_operations reset_ops = { 122static const struct file_operations reset_ops = {
122 .write = reset_write, 123 .write = reset_write,
123 .open = mac80211_open_file_generic, 124 .open = mac80211_open_file_generic,
125 .llseek = noop_llseek,
124}; 126};
125 127
126static ssize_t noack_read(struct file *file, char __user *user_buf, 128static ssize_t noack_read(struct file *file, char __user *user_buf,
@@ -156,7 +158,8 @@ static ssize_t noack_write(struct file *file,
156static const struct file_operations noack_ops = { 158static const struct file_operations noack_ops = {
157 .read = noack_read, 159 .read = noack_read,
158 .write = noack_write, 160 .write = noack_write,
159 .open = mac80211_open_file_generic 161 .open = mac80211_open_file_generic,
162 .llseek = default_llseek,
160}; 163};
161 164
162static ssize_t uapsd_queues_read(struct file *file, char __user *user_buf, 165static ssize_t uapsd_queues_read(struct file *file, char __user *user_buf,
@@ -202,7 +205,8 @@ static ssize_t uapsd_queues_write(struct file *file,
202static const struct file_operations uapsd_queues_ops = { 205static const struct file_operations uapsd_queues_ops = {
203 .read = uapsd_queues_read, 206 .read = uapsd_queues_read,
204 .write = uapsd_queues_write, 207 .write = uapsd_queues_write,
205 .open = mac80211_open_file_generic 208 .open = mac80211_open_file_generic,
209 .llseek = default_llseek,
206}; 210};
207 211
208static ssize_t uapsd_max_sp_len_read(struct file *file, char __user *user_buf, 212static ssize_t uapsd_max_sp_len_read(struct file *file, char __user *user_buf,
@@ -248,7 +252,8 @@ static ssize_t uapsd_max_sp_len_write(struct file *file,
248static const struct file_operations uapsd_max_sp_len_ops = { 252static const struct file_operations uapsd_max_sp_len_ops = {
249 .read = uapsd_max_sp_len_read, 253 .read = uapsd_max_sp_len_read,
250 .write = uapsd_max_sp_len_write, 254 .write = uapsd_max_sp_len_write,
251 .open = mac80211_open_file_generic 255 .open = mac80211_open_file_generic,
256 .llseek = default_llseek,
252}; 257};
253 258
254static ssize_t channel_type_read(struct file *file, char __user *user_buf, 259static ssize_t channel_type_read(struct file *file, char __user *user_buf,
@@ -280,7 +285,8 @@ static ssize_t channel_type_read(struct file *file, char __user *user_buf,
280 285
281static const struct file_operations channel_type_ops = { 286static const struct file_operations channel_type_ops = {
282 .read = channel_type_read, 287 .read = channel_type_read,
283 .open = mac80211_open_file_generic 288 .open = mac80211_open_file_generic,
289 .llseek = default_llseek,
284}; 290};
285 291
286static ssize_t queues_read(struct file *file, char __user *user_buf, 292static ssize_t queues_read(struct file *file, char __user *user_buf,
@@ -303,7 +309,8 @@ static ssize_t queues_read(struct file *file, char __user *user_buf,
303 309
304static const struct file_operations queues_ops = { 310static const struct file_operations queues_ops = {
305 .read = queues_read, 311 .read = queues_read,
306 .open = mac80211_open_file_generic 312 .open = mac80211_open_file_generic,
313 .llseek = default_llseek,
307}; 314};
308 315
309/* statistics stuff */ 316/* statistics stuff */