aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/rs.c
diff options
context:
space:
mode:
authorGregory Greenman <gregory.greenman@intel.com>2016-12-21 09:18:44 -0500
committerLuca Coelho <luciano.coelho@intel.com>2017-02-08 05:55:31 -0500
commit3374c3ab7f61cf820854cfe36405e4dcfc22a211 (patch)
treea3fdbcdc4e3df11576e7fb3591dce2e61e42de04 /drivers/net/wireless/intel/iwlwifi/mvm/rs.c
parentf4a1f04a3f66aebbe8665a28d9cf0b5e3d1c6f9d (diff)
iwlwifi: mvm: fix a print of NSS for HT rate
Handling of the number of space time streams was missing for HT rate in rate printing function. Fix it. Signed-off-by: Gregory Greenman <gregory.greenman@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/rs.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/rs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/rs.c b/drivers/net/wireless/intel/iwlwifi/mvm/rs.c
index 80f99c365b6a..13be9a5b83ee 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/rs.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/rs.c
@@ -3616,6 +3616,8 @@ int rs_pretty_print_rate(char *buf, const u32 rate)
3616 } else if (rate & RATE_MCS_HT_MSK) { 3616 } else if (rate & RATE_MCS_HT_MSK) {
3617 type = "HT"; 3617 type = "HT";
3618 mcs = rate & RATE_HT_MCS_INDEX_MSK; 3618 mcs = rate & RATE_HT_MCS_INDEX_MSK;
3619 nss = ((rate & RATE_HT_MCS_NSS_MSK)
3620 >> RATE_HT_MCS_NSS_POS) + 1;
3619 } else { 3621 } else {
3620 type = "Unknown"; /* shouldn't happen */ 3622 type = "Unknown"; /* shouldn't happen */
3621 } 3623 }