]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: rtw89: do RF calibration once setting channel when running pure monitor mode
authorPing-Ke Shih <pkshih@realtek.com>
Tue, 11 Nov 2025 02:24:51 +0000 (10:24 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Thu, 13 Nov 2025 01:38:29 +0000 (09:38 +0800)
commitd9204e99b69623997cba0d7472fa7df644df7cb5
tree52a5f79a27729ab61826a4036dc72fd6f8329e0c
parente96abe4fd7cd6f48434d8846aa7588bf7bdb3f0e
wifi: rtw89: do RF calibration once setting channel when running pure monitor mode

To be able to capture and inject packets in monitor mode, do RF calibration
once setting certain channel. Since calibration costs time, do not change
behavior of normal usage, which do calibration only when starting as AP
or going to connect AP.

Since driver declares IEEE80211_HW_WANT_MONITOR_VIF, the pure monitor vif
must be only one when adding interface with type NL80211_IFTYPE_MONITOR.
Otherwise, monitor vif must be NULL.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20251111022452.28093-8-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/mac80211.c