diff --git a/mt76x2_eeprom.c b/mt76x2_eeprom.c index 925fe6ae..5a268418 100644 --- a/mt76x2_eeprom.c +++ b/mt76x2_eeprom.c @@ -619,12 +619,12 @@ int mt76x2_get_temp_comp(struct mt76x2_dev *dev, struct mt76x2_temp_comp *t) bool mt76x2_ext_pa_enabled(struct mt76x2_dev *dev, enum nl80211_band band) { - u16 conf1 = mt76x2_eeprom_get(dev, MT_EE_NIC_CONF_0); + u16 conf0 = mt76x2_eeprom_get(dev, MT_EE_NIC_CONF_0); if (band == NL80211_BAND_5GHZ) - return !(conf1 & MT_EE_NIC_CONF_0_PA_INT_5G); + return !(conf0 & MT_EE_NIC_CONF_0_PA_INT_5G); else - return !(conf1 & MT_EE_NIC_CONF_0_PA_INT_2G); + return !(conf0 & MT_EE_NIC_CONF_0_PA_INT_2G); } int mt76x2_eeprom_init(struct mt76x2_dev *dev)