1 --- a/net/mac80211/rc80211_minstrel.h
2 +++ b/net/mac80211/rc80211_minstrel.h
3 @@ -85,7 +85,13 @@ struct minstrel_debugfs_info {
7 +extern struct rate_control_ops mac80211_minstrel;
8 void minstrel_add_sta_debugfs(void *priv, void *priv_sta, struct dentry *dir);
9 void minstrel_remove_sta_debugfs(void *priv, void *priv_sta);
12 +int minstrel_stats_open(struct inode *inode, struct file *file);
13 +ssize_t minstrel_stats_read(struct file *file, char __user *buf, size_t len, loff_t *o);
14 +int minstrel_stats_release(struct inode *inode, struct file *file);
17 --- a/net/mac80211/rc80211_minstrel.c
18 +++ b/net/mac80211/rc80211_minstrel.c
19 @@ -541,7 +541,7 @@ minstrel_free(void *priv)
23 -static struct rate_control_ops mac80211_minstrel = {
24 +struct rate_control_ops mac80211_minstrel = {
26 .tx_status = minstrel_tx_status,
27 .get_rate = minstrel_get_rate,
28 --- a/net/mac80211/rc80211_minstrel_debugfs.c
29 +++ b/net/mac80211/rc80211_minstrel_debugfs.c
31 #include <net/mac80211.h>
32 #include "rc80211_minstrel.h"
36 minstrel_stats_open(struct inode *inode, struct file *file)
38 struct minstrel_sta_info *mi = inode->i_private;
39 @@ -100,7 +100,7 @@ minstrel_stats_open(struct inode *inode,
45 minstrel_stats_read(struct file *file, char __user *buf, size_t len, loff_t *ppos)
47 struct minstrel_debugfs_info *ms;
48 @@ -109,7 +109,7 @@ minstrel_stats_read(struct file *file, c
49 return simple_read_from_buffer(buf, len, ppos, ms->buf, ms->len);
54 minstrel_stats_release(struct inode *inode, struct file *file)
56 kfree(file->private_data);