wifi: mac80211: fix WARN_ON for monitor mode on some devices
authorJohannes Berg <johannes.berg@intel.com>
Wed, 23 Jul 2025 07:14:19 +0000 (09:14 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 Jul 2025 10:29:07 +0000 (12:29 +0200)
commitc57e5b9819dfd16d709bcd6cb633301ed0829a66
treecc9671034719df7fd736791afb1f7c57c01f23bf
parent204bb852863bf14f343a0801b15bc2173bc318f9
wifi: mac80211: fix WARN_ON for monitor mode on some devices

On devices without WANT_MONITOR_VIF (and probably without
channel context support) we get a WARN_ON for changing the
per-link setting of a monitor interface.

Since we already skip AP_VLAN interfaces and MONITOR with
WANT_MONITOR_VIF and/or NO_VIRTUAL_MONITOR should update
the settings, catch this in the link change code instead
of the warning.

Reported-by: Martin Kaistra <martin.kaistra@linutronix.de>
Link: https://lore.kernel.org/r/a9de62a0-28f1-4981-84df-253489da74ed@linutronix.de/
Fixes: c4382d5ca1af ("wifi: mac80211: update the right link for tx power")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/main.c