]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: cfg80211: remove unneeded call to cfg80211_leave
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Thu, 19 Feb 2026 09:47:12 +0000 (11:47 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 2 Mar 2026 08:22:58 +0000 (09:22 +0100)
In cfg80211_destroy_ifaces, we first close all netdev wdevs, which will
trigger a NETDEV_GOING_DOWN event that will call cfg80211_leave,
and for non-netdev wdevs, we call cfg80211_remove_virtual_intf which
calles cfg80211_unregister_wdev, which handles the "leaving" for those
interfaces (i.e. stop_nan and stop_p2p_device)

Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260219114327.c43709c9d3af.I3179a28f237ea3b8ec368af720fbf77455a7763f@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c

index 28ca4290ca99fca8736128f8813bca40b4914618..23afc250bc10f1704aa8440a97a730bdb0917f8b 100644 (file)
@@ -349,7 +349,6 @@ void cfg80211_destroy_ifaces(struct cfg80211_registered_device *rdev)
 
                        guard(wiphy)(&rdev->wiphy);
 
-                       cfg80211_leave(rdev, wdev, -1);
                        cfg80211_remove_virtual_intf(rdev, wdev);
                }
        }