]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
wifi: mt76: mt7996: disable promiscuous mode by default
authorPeter Chiu <chui-hao.chiu@mediatek.com>
Mon, 15 Sep 2025 07:59:05 +0000 (09:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Nov 2025 20:37:22 +0000 (15:37 -0500)
[ Upstream commit a4a66cbaa20f51cb953d09a95c67cb237a088ec9 ]

Set MT_WF_RFCR_DROP_OTHER_UC by default and disable this flag in
mt7996_set_monitor only if monitor mode is enabled.

Without this patch, the MT_WF_RFCR_DROP_OTHER_UC would not be set so the
driver would receive lots of packets meant for other devices.

Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
Link: https://patch.msgid.link/20250915075910.47558-10-nbd@nbd.name
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7996/init.c

index a75b29bada14107d045cd4866586b8253dddec77..5e81edde1e2835b79db9a80ad4f2809f4324df96 100644 (file)
@@ -383,6 +383,7 @@ mt7996_init_wiphy_band(struct ieee80211_hw *hw, struct mt7996_phy *phy)
 
        phy->slottime = 9;
        phy->beacon_rate = -1;
+       phy->rxfilter = MT_WF_RFCR_DROP_OTHER_UC;
 
        if (phy->mt76->cap.has_2ghz) {
                phy->mt76->sband_2g.sband.ht_cap.cap |=