From fd4c0858e58d9c71f121bdcdac299fa6f65fe03d Mon Sep 17 00:00:00 2001 From: Peter Chiu Date: Tue, 18 Feb 2025 13:41:28 +0800 Subject: [PATCH] wifi: mt76: mt7996: disable promiscuous mode by default 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 Signed-off-by: Felix Fietkau --- mt7996/init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mt7996/init.c b/mt7996/init.c index 007f16ad..09c73a6d 100644 --- a/mt7996/init.c +++ b/mt7996/init.c @@ -411,6 +411,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 |=