Skip to contentSkip to conversation

mt76: mt76x0: correct VHT MCS 8/9 tx power eeprom offset

PATCH New Felix Fietkau 1 participant 1 message Oct 19, 2021

Subsystems (2)
lore
Share & tools
lore

Felix Fietkau

author maintainer
#0 lore raw

PATCH 1/1 mt76: mt76x0: correct VHT MCS 8/9 tx power eeprom offset

From: Richard Huynh <[email protected]>

Appears to have incorrectly offset 0x120 + 0x12 instead of 12 decimal, leading to bogus power values being used.

---
 drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c +1 -1
index cea24213186c..da2ca2563ac9 100644
@@ -201,7 +201,7 @@ void mt76x0_get_tx_power_per_rate(struct mt76x02_dev *dev,
 	t->stbc[6] = t->stbc[7] = s6_to_s8(val >> 8);
 
 	/* vht mcs 8, 9 5GHz */
-	val = mt76x02_eeprom_get(dev, 0x132);
+	val = mt76x02_eeprom_get(dev, 0x12c);
 	t->vht[8] = s6_to_s8(val);
 	t->vht[9] = s6_to_s8(val >> 8);
 
Signature · 1 line
2.30.1