mt76: move channel state to struct mt76_phy
[linux-2.6-microblaze.git] / drivers / net / wireless / mediatek / mt76 / mt76x2 / usb_phy.c
index b1381f9..d4d9b40 100644 (file)
@@ -10,7 +10,7 @@
 static void
 mt76x2u_phy_channel_calibrate(struct mt76x02_dev *dev, bool mac_stopped)
 {
-       struct ieee80211_channel *chan = dev->mt76.chandef.chan;
+       struct ieee80211_channel *chan = dev->mphy.chandef.chan;
        bool is_5ghz = chan->band == NL80211_BAND_5GHZ;
 
        if (dev->cal.channel_cal_done)
@@ -185,7 +185,7 @@ int mt76x2u_phy_set_channel(struct mt76x02_dev *dev,
                        struct ieee80211_channel *chan;
                        u32 flag = 0;
 
-                       chan = dev->mt76.chandef.chan;
+                       chan = dev->mphy.chandef.chan;
                        if (chan->band == NL80211_BAND_5GHZ)
                                flag |= BIT(0);
                        if (mt76x02_ext_pa_enabled(dev, chan->band))