提交 bacf5047 编写于 作者: S Shayne Chen 提交者: Felix Fietkau

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: NYiwei Chung <yiwei.chung@mediatek.com>
Signed-off-by: NShayne Chen <shayne.chen@mediatek.com>
Signed-off-by: NFelix Fietkau <nbd@nbd.name>
上级 9716ef04
......@@ -3501,7 +3501,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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册