提交 b1fe07ed 编写于 作者: P Peter Chiu 提交者: Felix Fietkau

mt76: mt7921: fix ht mcs in mt7921_mac_add_txs_skb()

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

Fixes: 970ab80e ("mt76: mt7921: report tx rate directly from tx status")
Signed-off-by: NPeter Chiu <chui-hao.chiu@mediatek.com>
Signed-off-by: NFelix Fietkau <nbd@nbd.name>
上级 d8e4e8d1
...@@ -1092,7 +1092,6 @@ mt7921_mac_add_txs_skb(struct mt7921_dev *dev, struct mt76_wcid *wcid, int pid, ...@@ -1092,7 +1092,6 @@ mt7921_mac_add_txs_skb(struct mt7921_dev *dev, struct mt76_wcid *wcid, int pid,
break; break;
case MT_PHY_TYPE_HT: case MT_PHY_TYPE_HT:
case MT_PHY_TYPE_HT_GF: case MT_PHY_TYPE_HT_GF:
rate.mcs += (rate.nss - 1) * 8;
if (rate.mcs > 31) if (rate.mcs > 31)
goto out; goto out;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册