diff options
author | Johannes Berg <johannes.berg@intel.com> | 2021-06-08 12:32:30 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2021-06-09 17:09:21 +0300 |
commit | f5baf287f5da5641099ad5c809b3b4ebfc08506d (patch) | |
tree | 4888f3012a3995ec1efacab86644f284f611613d /net/mac80211/util.c | |
parent | 65bec836da8394b1d56bdec2c478dcac21cf12a4 (diff) | |
download | linux-f5baf287f5da5641099ad5c809b3b4ebfc08506d.tar.xz |
mac80211: move interface shutdown out of wiphy lock
When reconfiguration fails, we shut down everything, but we
cannot call cfg80211_shutdown_all_interfaces() with the wiphy
mutex held. Since cfg80211 now calls it on resume errors, we
only need to do likewise for where we call reconfig (whether
directly or indirectly), but not under the wiphy lock.
Cc: stable@vger.kernel.org
Fixes: 2fe8ef106238 ("cfg80211: change netdev registration/unregistration semantics")
Link: https://lore.kernel.org/r/20210608113226.78233c80f548.Iecc104aceb89f0568f50e9670a9cb191a1c8887b@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r-- | net/mac80211/util.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 0a0481f5af48..93d96a4f9c3e 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -2178,8 +2178,6 @@ static void ieee80211_handle_reconfig_failure(struct ieee80211_local *local) list_for_each_entry(ctx, &local->chanctx_list, list) ctx->driver_present = false; mutex_unlock(&local->chanctx_mtx); - - cfg80211_shutdown_all_interfaces(local->hw.wiphy); } static void ieee80211_assign_chanctx(struct ieee80211_local *local, |