wifi: cfg80211: hold wiphy lock in auto-disconnect
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Jun 2023 12:49:20 +0000 (14:49 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 7 Jun 2023 17:53:04 +0000 (19:53 +0200)
commite9da6df7492a981b071bafd169fb4c35b45f5ebf
treede99210710e2525a5a9da004144a7d3fa33b4b61
parent10f5ae21940cc754f82828d81b8009f2e8ae2c64
wifi: cfg80211: hold wiphy lock in auto-disconnect

Most code paths in cfg80211 already hold the wiphy lock,
mostly by virtue of being called from nl80211, so make
the auto-disconnect worker also hold it, aligning the
locking promises between different parts of cfg80211.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c
net/wireless/sme.c