]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: cfg80211: use cfg80211_leave() in iftype change
authorJohannes Berg <johannes.berg@intel.com>
Fri, 21 Nov 2025 16:40:20 +0000 (17:40 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 24 Nov 2025 12:05:23 +0000 (13:05 +0100)
commit7a27b73943a70ee226fa125327101fb18e94701d
tree78bcaa2f6e0fd7ee3e9b748ce39fd8e187ca2c75
parentde3c5142349c6cd67fbd20afc5b3ae320df436b7
wifi: cfg80211: use cfg80211_leave() in iftype change

When changing the interface type, all activity on the interface has
to be stopped first. This was done independent of existing code in
cfg80211_leave(), so didn't handle e.g. background radar detection.
Use cfg80211_leave() to handle it the same way.

Note that cfg80211_leave() behaves slightly differently for IBSS in
wireless extensions, it won't send an event in that case. We could
handle that, but since nl80211 was used to change the type, IBSS is
rare, and wext is already a corner case, it doesn't seem worth it.

Link: https://patch.msgid.link/20251121174021.922ef48ce007.I970c8514252ef8a864a7fbdab9591b71031dee03@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/util.c