]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mt76: do not set NEEDS_UNIQUE_STA_ADDR for 7615 and 7915
authorFelix Fietkau <nbd@nbd.name>
Sat, 26 Sep 2020 20:39:31 +0000 (22:39 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 4 Dec 2020 12:46:13 +0000 (13:46 +0100)
The newer chipsets can deal with the same STA on multiple interfaces
Preparation for supporting more station interfaces

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mac80211.c
drivers/net/wireless/mediatek/mt76/mt7603/init.c
drivers/net/wireless/mediatek/mt76/mt76x02_util.c

index 4e0ed9c79d5062e1f161233fa0fe8d064e8c5a26..a778ecc652613782d3392b4484513b0cccf2dca2 100644 (file)
@@ -314,7 +314,6 @@ mt76_phy_init(struct mt76_dev *dev, struct ieee80211_hw *hw)
        ieee80211_hw_set(hw, MFP_CAPABLE);
        ieee80211_hw_set(hw, AP_LINK_PS);
        ieee80211_hw_set(hw, REPORTS_TX_ACK_STATUS);
-       ieee80211_hw_set(hw, NEEDS_UNIQUE_STA_ADDR);
 
        wiphy->flags |= WIPHY_FLAG_IBSS_RSN;
        wiphy->interface_modes =
index c4848fafd2705d2857023400f89ba62008e7617e..619a97a8ea21a78b50397f1b10f3bbfac2511b5b 100644 (file)
@@ -557,6 +557,7 @@ int mt7603_register_device(struct mt7603_dev *dev)
 
        ieee80211_hw_set(hw, TX_STATUS_NO_AMPDU_LEN);
        ieee80211_hw_set(hw, HOST_BROADCAST_PS_BUFFERING);
+       ieee80211_hw_set(hw, NEEDS_UNIQUE_STA_ADDR);
 
        /* init led callbacks */
        if (IS_ENABLED(CONFIG_MT76_LEDS)) {
index 11b769af2f8f638c057a4138d00283c158a6b4c1..ea31650a01b86fd28b5d695aae211803dcd27dbf 100644 (file)
@@ -186,6 +186,7 @@ void mt76x02_init_device(struct mt76x02_dev *dev)
 
        ieee80211_hw_set(hw, SUPPORTS_HT_CCK_RATES);
        ieee80211_hw_set(hw, HOST_BROADCAST_PS_BUFFERING);
+       ieee80211_hw_set(hw, NEEDS_UNIQUE_STA_ADDR);
 
        dev->mt76.global_wcid.idx = 255;
        dev->mt76.global_wcid.hw_key_idx = -1;