提交 3374c3ab 编写于 作者: G Gregory Greenman 提交者: Luca Coelho

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: NGregory Greenman <gregory.greenman@intel.com>
Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
上级 f4a1f04a
...@@ -3616,6 +3616,8 @@ int rs_pretty_print_rate(char *buf, const u32 rate) ...@@ -3616,6 +3616,8 @@ int rs_pretty_print_rate(char *buf, const u32 rate)
} else if (rate & RATE_MCS_HT_MSK) { } else if (rate & RATE_MCS_HT_MSK) {
type = "HT"; type = "HT";
mcs = rate & RATE_HT_MCS_INDEX_MSK; mcs = rate & RATE_HT_MCS_INDEX_MSK;
nss = ((rate & RATE_HT_MCS_NSS_MSK)
>> RATE_HT_MCS_NSS_POS) + 1;
} else { } else {
type = "Unknown"; /* shouldn't happen */ type = "Unknown"; /* shouldn't happen */
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册