mt76: move vif_mask back from mt76_phy to mt76_dev
[linux-2.6-microblaze.git] / drivers / net / wireless / mediatek / mt76 / mt7603 / main.c
index d7e4bb2..8edea1e 100644 (file)
@@ -44,7 +44,7 @@ mt7603_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
 
        mutex_lock(&dev->mt76.mutex);
 
-       mvif->idx = ffs(~dev->mphy.vif_mask) - 1;
+       mvif->idx = ffs(~dev->mt76.vif_mask) - 1;
        if (mvif->idx >= MT7603_MAX_INTERFACES) {
                ret = -ENOSPC;
                goto out;
@@ -65,7 +65,7 @@ mt7603_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
        }
 
        idx = MT7603_WTBL_RESERVED - 1 - mvif->idx;
-       dev->mphy.vif_mask |= BIT(mvif->idx);
+       dev->mt76.vif_mask |= BIT(mvif->idx);
        INIT_LIST_HEAD(&mvif->sta.poll_list);
        mvif->sta.wcid.idx = idx;
        mvif->sta.wcid.hw_key_idx = -1;
@@ -105,7 +105,7 @@ mt7603_remove_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
        spin_unlock_bh(&dev->sta_poll_lock);
 
        mutex_lock(&dev->mt76.mutex);
-       dev->mphy.vif_mask &= ~BIT(mvif->idx);
+       dev->mt76.vif_mask &= ~BIT(mvif->idx);
        mutex_unlock(&dev->mt76.mutex);
 }