]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: mt76: mt792x: improve monitor interface handling
authorMing Yen Hsieh <mingyen.hsieh@mediatek.com>
Wed, 25 Jun 2025 07:56:11 +0000 (15:56 +0800)
committerFelix Fietkau <nbd@nbd.name>
Mon, 7 Jul 2025 16:08:48 +0000 (18:08 +0200)
Enable IEEE80211_HW_NO_VIRTUAL_MONITOR to ensure the driver is notified of
all monitor interfaces and their channels.

Signed-off-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
Link: https://patch.msgid.link/20250625075611.1407687-1-mingyen.hsieh@mediatek.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt792x_core.c

index 43a7ac0f718e63b9be5498259d7b9a8571efc86c..381009c4b6b67b20ed219b06ee00708d50549fe8 100644 (file)
@@ -666,6 +666,7 @@ int mt792x_init_wiphy(struct ieee80211_hw *hw)
        ieee80211_hw_set(hw, SUPPORTS_DYNAMIC_PS);
        ieee80211_hw_set(hw, SUPPORTS_VHT_EXT_NSS_BW);
        ieee80211_hw_set(hw, CONNECTION_MONITOR);
+       ieee80211_hw_set(hw, NO_VIRTUAL_MONITOR);
        if (is_mt7921(&dev->mt76))
                ieee80211_hw_set(hw, CHANCTX_STA_CSA);