Skip to contentSkip to conversation

mt76: mt7915: force ldpc for bw larger than 20MHz in testmode

PATCH In review Shayne Chen 2 participants 2 messages Jan 5, 2021 – Jan 6, 2021

Subsystems (2)
lore
Share & tools
lore

Shayne Chen

author reviewer
#0 lore raw

PATCH 1/1 mt76: mt7915: force ldpc for bw larger than 20MHz in testmode

LDPC should be set when bw is larger than 20MHz to make testmode tx work normally.

---
 drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/mediatek/mt76/mt7915/mac.c +1 -1
index dc1f56fb823d..e8787c336a55 100644
@@ -700,7 +700,7 @@ mt7915_mac_write_txwi_tm(struct mt7915_phy *phy, __le32 *txwi,
 	if (mode >= MT_PHY_TYPE_HE_SU)
 		val |= FIELD_PREP(MT_TXD6_HELTF, td->tx_ltf);
 
-	if (td->tx_rate_ldpc)
+	if (td->tx_rate_ldpc || bw > 0)
 		val |= MT_TXD6_LDPC;
 
 	txwi[6] |= cpu_to_le32(val);
Signature · 5 lines
2.29.2
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
maintainer
#1 lore raw
Quoted 13 lines · Shayne Chen

LDPC should be set when bw is larger than 20MHz to make testmode tx work normally.

---
 drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/mediatek/mt76/mt7915/mac.c +0 -0
index dc1f56fb823d..e8787c336a55 100644

drivers/net/wireless/mediatek/mt76/mt7915/mac.c mt7915_mac_write_txwi_tm(struct mt7915_phy *phy, __le32 *txwi, · line 703

Quoted 5 lines
drivers/net/wireless/mediatek/mt76/mt7915/mac.c +1 -1
@@ -700,7 +700,7 @@ mt7915_mac_write_txwi_tm(struct mt7915_phy *phy, __le32 *txwi,
 	if (mode >= MT_PHY_TYPE_HE_SU)
 		val |= FIELD_PREP(MT_TXD6_HELTF, td->tx_ltf);
 
-	if (td->tx_rate_ldpc)
+	if (td->tx_rate_ldpc || bw > 0)

Prefer explicitly checking bw > IEEE80211_STA_RX_BW_20

drivers/net/wireless/mediatek/mt76/mt7915/mac.c mt7915_mac_write_txwi_tm(struct mt7915_phy *phy, __le32 *txwi, · line 706

Quoted 3 lines
drivers/net/wireless/mediatek/mt76/mt7915/mac.c +0 -0
 		val |= MT_TXD6_LDPC;
 
 	txwi[6] |= cpu_to_le32(val);

Ryder

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek