mt76: mt7915: fix ht mcs in mt7915_mcu_get_rx_rate()

The mcs value of HT mode reported by mt7915_mcu_get_rx_rate()
has already been converted to the expected format.

Tested-by: Yiwei Chung <[email protected]>
Signed-off-by: Shayne Chen <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Shayne Chen
2021-01-05 09:08:47 +01:00
committed by Felix Fietkau
parent b6673b0057
commit abdd471e9f
+3 -1
View File
@@ -3553,7 +3553,9 @@ int mt7915_mcu_get_rx_rate(struct mt7915_phy *phy, struct ieee80211_vif *vif,
break;
case MT_PHY_TYPE_HT:
case MT_PHY_TYPE_HT_GF:
rate->mcs += (rate->nss - 1) * 8;
if (rate->mcs > 31)
return -EINVAL;
flags |= RATE_INFO_FLAGS_MCS;
if (res->gi)