mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 18:21:24 +02:00
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:
parent
9535e2279b
commit
a371139d8b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user