wifi: cfg80211: reg: hold wiphy mutex for wdev iteration
authorJohannes Berg <johannes.berg@intel.com>
Mon, 28 Aug 2023 11:59:53 +0000 (13:59 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Sep 2023 09:27:21 +0000 (11:27 +0200)
commit0320d68f568126f617a346f601a58254b55e6c31
tree89a6ed514caad64f75c53fcc1dacce8c221f8f4e
parent0e8185ce1ddebf9de43b1f0fa92bf6dbba6ffb86
wifi: cfg80211: reg: hold wiphy mutex for wdev iteration

Since we will want to remove the wdev lock in the future,
lock the wiphy here to iterate and check the flags.

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c