wifi: rtw89: SNIFFER_MODE bit along IEEE80211_CONF_MONITOR

The SNIFFER_MODE bit can ignore filter rules, and receive packets to
driver, so set the bit to accept all packets.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260506131000.1706298-4-pkshih@realtek.com
This commit is contained in:
Ping-Ke Shih 2026-05-06 21:09:49 +08:00
parent 9535e2279b
commit a371139d8b

View File

@ -356,6 +356,11 @@ static void rtw89_ops_configure_filter(struct ieee80211_hw *hw,
}
}
if (rtwdev->hw->conf.flags & IEEE80211_CONF_MONITOR)
rtwdev->hal.rx_fltr |= B_AX_SNIFFER_MODE;
else
rtwdev->hal.rx_fltr &= ~B_AX_SNIFFER_MODE;
rx_fltr = rtwdev->hal.rx_fltr;
/* mac80211 doesn't configure filter when HW scan, driver need to