]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: mt76: mt7996: remove phy->monitor_vif
authorFelix Fietkau <nbd@nbd.name>
Mon, 30 Dec 2024 19:41:50 +0000 (20:41 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 14 Jan 2025 12:34:36 +0000 (13:34 +0100)
It is unused

Link: https://patch.msgid.link/20241230194202.95065-2-nbd@nbd.name
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7996/main.c
drivers/net/wireless/mediatek/mt76/mt7996/mt7996.h

index 2b34ae5e0cb57b50eaf34c23e36e32f37791f5cb..eb2388f079d9c15bdc64ba0e253bba2ef896fb89 100644 (file)
@@ -188,10 +188,6 @@ static int mt7996_add_interface(struct ieee80211_hw *hw,
 
        mutex_lock(&dev->mt76.mutex);
 
-       if (vif->type == NL80211_IFTYPE_MONITOR &&
-           is_zero_ether_addr(vif->addr))
-               phy->monitor_vif = vif;
-
        mvif->mt76.idx = __ffs64(~dev->mt76.vif_mask);
        if (mvif->mt76.idx >= mt7996_max_interface_num(dev)) {
                ret = -ENOSPC;
@@ -270,10 +266,6 @@ static void mt7996_remove_interface(struct ieee80211_hw *hw,
 
        mt7996_mcu_add_sta(dev, vif, NULL, false, false);
        mt7996_mcu_add_bss_info(phy, vif, false);
-
-       if (vif == phy->monitor_vif)
-               phy->monitor_vif = NULL;
-
        mt7996_mcu_add_dev_info(phy, vif, false);
 
        rcu_assign_pointer(dev->mt76.wcid[idx], NULL);
index 9aec97dd81d9ec9aabc6297acd43777d6288d582..ad10329d6b443102f3386621b85d9bf1087327f0 100644 (file)
@@ -246,8 +246,6 @@ struct mt7996_phy {
 
        struct ieee80211_sband_iftype_data iftype[NUM_NL80211_BANDS][NUM_NL80211_IFTYPES];
 
-       struct ieee80211_vif *monitor_vif;
-
        struct thermal_cooling_device *cdev;
        u8 cdev_state;
        u8 throttle_state;