mac80211: increase minstrel_ht precision by properly using a-mpdu frame stats
[openwrt.git] / package / mac80211 / patches / 550-minstrel_extern.patch
1 --- a/net/mac80211/rc80211_minstrel.h
2 +++ b/net/mac80211/rc80211_minstrel.h
3 @@ -85,7 +85,13 @@ struct minstrel_debugfs_info {
4 char buf[];
5 };
6
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);
10
11 +/* debugfs */
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);
15 +
16 #endif
17 --- a/net/mac80211/rc80211_minstrel.c
18 +++ b/net/mac80211/rc80211_minstrel.c
19 @@ -541,7 +541,7 @@ minstrel_free(void *priv)
20 kfree(priv);
21 }
22
23 -static struct rate_control_ops mac80211_minstrel = {
24 +struct rate_control_ops mac80211_minstrel = {
25 .name = "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
30 @@ -52,7 +52,7 @@
31 #include <net/mac80211.h>
32 #include "rc80211_minstrel.h"
33
34 -static int
35 +int
36 minstrel_stats_open(struct inode *inode, struct file *file)
37 {
38 struct minstrel_sta_info *mi = inode->i_private;
39 @@ -100,7 +100,7 @@ minstrel_stats_open(struct inode *inode,
40 return 0;
41 }
42
43 -static ssize_t
44 +ssize_t
45 minstrel_stats_read(struct file *file, char __user *buf, size_t len, loff_t *ppos)
46 {
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);
50 }
51
52 -static int
53 +int
54 minstrel_stats_release(struct inode *inode, struct file *file)
55 {
56 kfree(file->private_data);
This page took 0.05014 seconds and 5 git commands to generate.