]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: cfg80211: stop radar detection in cfg80211_leave()
authorJohannes Berg <johannes.berg@intel.com>
Fri, 21 Nov 2025 16:40:21 +0000 (17:40 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 24 Nov 2025 12:05:23 +0000 (13:05 +0100)
commit9f33477b9a31a1edfe2df9f1a0359cccb0e16b4c
tree081fabbc4431f27a3d269e343aea19d2a9899583
parent7a27b73943a70ee226fa125327101fb18e94701d
wifi: cfg80211: stop radar detection in cfg80211_leave()

If an interface is set down or, per the previous patch, changes
type, radar detection for it should be cancelled. This is done
for AP mode in mac80211 (somewhat needlessly, since cfg80211 can
do it, but didn't until now), but wasn't handled for mesh, so if
radar detection was started and then the interface set down or
its type switched (the latter sometimes happning in the hwsim
test 'mesh_peer_connected_dfs'), radar detection would be around
with the interface unknown to the driver, later leading to some
warnings around chanctx usage.

Link: https://patch.msgid.link/20251121174021.290120e419e3.I2a5650c9062e29c988992dd8ce0d8eb570d23267@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c
net/wireless/core.h
net/wireless/mlme.c