diff options
author | Karl Beldan <karl.beldan@rivierawaves.com> | 2013-11-11 13:12:55 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-11-25 20:52:07 +0100 |
commit | 7a5e3fa2c81ca2fdc514c61ad90fb4e0b632258c (patch) | |
tree | e4e0d206aa23783104eff8f52a00bfb06835fd04 /net/mac80211/rc80211_minstrel_ht_debugfs.c | |
parent | 21f659bf1f93f7052b977d95cca560f02dc2edce (diff) | |
download | linux-7a5e3fa2c81ca2fdc514c61ad90fb4e0b632258c.tar.gz linux-7a5e3fa2c81ca2fdc514c61ad90fb4e0b632258c.tar.bz2 linux-7a5e3fa2c81ca2fdc514c61ad90fb4e0b632258c.zip |
mac80211: minstrel_ht: replace some occurences of MCS_GROUP_RATES
Consecutive MCSes in [8*(NSS-1)->8*NSS[ have the same number NSS of
streams (except for MCS32 which is mishandled ATM).
ATM minstrel_ht uses MCS_GROUP_RATES in place of this 8 modulus.
This change replaces such occurences and by doing so allows for different
values of MCS_GROUP_RATES (e.g to cope with VHT MCS8,9).
Signed-off-by: Karl Beldan <karl.beldan@rivierawaves.com>
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 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac80211/rc80211_minstrel_ht_debugfs.c b/net/mac80211/rc80211_minstrel_ht_debugfs.c index df44a5ad8270..3e7d793de0c3 100644 --- a/net/mac80211/rc80211_minstrel_ht_debugfs.c +++ b/net/mac80211/rc80211_minstrel_ht_debugfs.c @@ -54,8 +54,7 @@ minstrel_ht_stats_dump(struct minstrel_ht_sta *mi, int i, char *p) int r = bitrates[j % 4]; p += sprintf(p, " %2u.%1uM", r / 10, r % 10); } else { - p += sprintf(p, " MCS%-2u", (mg->streams - 1) * - MCS_GROUP_RATES + j); + p += sprintf(p, " MCS%-2u", (mg->streams - 1) * 8 + j); } tp = mr->cur_tp / 10; |