mt76x2: rename misnamed variable

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2016-09-15 14:44:52 +02:00
parent 29a89c4be0
commit 60a15e968d
+3 -3
View File
@@ -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)