aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/rc80211_minstrel_debugfs.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-03-01 16:21:40 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-03-10 17:44:23 -0500
commiteae44756d60c4e938259358090dba5df675dced0 (patch)
tree2333b445beb942a4f8f0aecdc3459da9cca8c715 /net/mac80211/rc80211_minstrel_debugfs.c
parent44ac91ea8450b0e7a27b4a1fd64aefd35a144728 (diff)
minstrel: make the rate control ops reusable from another rc implementation
This patch makes it possible to reuse the minstrel rate control ops from another rate control module. This is useful in preparing for the new 802.11n implementation of minstrel, which will reuse the old code for legacy stations. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/rc80211_minstrel_debugfs.c')
-rw-r--r--net/mac80211/rc80211_minstrel_debugfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/rc80211_minstrel_debugfs.c b/net/mac80211/rc80211_minstrel_debugfs.c
index 3e83402ece17..56d0f24957d9 100644
--- a/net/mac80211/rc80211_minstrel_debugfs.c
+++ b/net/mac80211/rc80211_minstrel_debugfs.c
@@ -52,7 +52,7 @@
52#include <net/mac80211.h> 52#include <net/mac80211.h>
53#include "rc80211_minstrel.h" 53#include "rc80211_minstrel.h"
54 54
55static int 55int
56minstrel_stats_open(struct inode *inode, struct file *file) 56minstrel_stats_open(struct inode *inode, struct file *file)
57{ 57{
58 struct minstrel_sta_info *mi = inode->i_private; 58 struct minstrel_sta_info *mi = inode->i_private;
@@ -100,7 +100,7 @@ minstrel_stats_open(struct inode *inode, struct file *file)
100 return 0; 100 return 0;
101} 101}
102 102
103static ssize_t 103ssize_t
104minstrel_stats_read(struct file *file, char __user *buf, size_t len, loff_t *ppos) 104minstrel_stats_read(struct file *file, char __user *buf, size_t len, loff_t *ppos)
105{ 105{
106 struct minstrel_debugfs_info *ms; 106 struct minstrel_debugfs_info *ms;
@@ -109,7 +109,7 @@ minstrel_stats_read(struct file *file, char __user *buf, size_t len, loff_t *ppo
109 return simple_read_from_buffer(buf, len, ppos, ms->buf, ms->len); 109 return simple_read_from_buffer(buf, len, ppos, ms->buf, ms->len);
110} 110}
111 111
112static int 112int
113minstrel_stats_release(struct inode *inode, struct file *file) 113minstrel_stats_release(struct inode *inode, struct file *file)
114{ 114{
115 kfree(file->private_data); 115 kfree(file->private_data);