diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-10-06 20:35:01 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-10-11 17:01:01 +0300 |
commit | b1c4f68337fa6b7c09154bb2bf2ec6f0d30ab652 (patch) | |
tree | 1a9e09fa489aaeaced52b91b46a2cd6e5cdc6cad /net/mac80211/rc80211_minstrel_ht_debugfs.c | |
parent | 5b5e87314efb558f2ff4b027b4d1ba386893e908 (diff) | |
download | linux-b1c4f68337fa6b7c09154bb2bf2ec6f0d30ab652.tar.xz |
mac80211: minstrel: merge with minstrel_ht, always enable VHT support
Legacy-only devices are not very common and the overhead of the extra
code for HT and VHT rates is not big enough to justify all those extra
lines of code to make it optional.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/rc80211_minstrel_ht_debugfs.c')
-rw-r--r-- | net/mac80211/rc80211_minstrel_ht_debugfs.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net/mac80211/rc80211_minstrel_ht_debugfs.c b/net/mac80211/rc80211_minstrel_ht_debugfs.c index afc7c65ebfad..5db0f4228875 100644 --- a/net/mac80211/rc80211_minstrel_ht_debugfs.c +++ b/net/mac80211/rc80211_minstrel_ht_debugfs.c @@ -15,6 +15,22 @@ #include "rc80211_minstrel.h" #include "rc80211_minstrel_ht.h" +static ssize_t +minstrel_stats_read(struct file *file, char __user *buf, size_t len, loff_t *ppos) +{ + struct minstrel_debugfs_info *ms; + + ms = file->private_data; + return simple_read_from_buffer(buf, len, ppos, ms->buf, ms->len); +} + +static int +minstrel_stats_release(struct inode *inode, struct file *file) +{ + kfree(file->private_data); + return 0; +} + static char * minstrel_ht_stats_dump(struct minstrel_ht_sta *mi, int i, char *p) { |