mt76: move channel state to struct mt76_phy
[linux-2.6-microblaze.git] / drivers / net / wireless / mediatek / mt76 / mt76x2 / eeprom.h
index 4dcf651..3755632 100644 (file)
@@ -53,7 +53,7 @@ mt76x2_has_ext_lna(struct mt76x02_dev *dev)
 {
        u32 val = mt76x02_eeprom_get(dev, MT_EE_NIC_CONF_1);
 
-       if (dev->mt76.chandef.chan->band == NL80211_BAND_2GHZ)
+       if (dev->mphy.chandef.chan->band == NL80211_BAND_2GHZ)
                return val & MT_EE_NIC_CONF_1_LNA_EXT_2G;
        else
                return val & MT_EE_NIC_CONF_1_LNA_EXT_5G;