wifi: mac80211: check wiphy mutex in ops
authorJohannes Berg <johannes.berg@intel.com>
Mon, 28 Aug 2023 11:59:52 +0000 (13:59 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Sep 2023 09:27:21 +0000 (11:27 +0200)
commit0e8185ce1ddebf9de43b1f0fa92bf6dbba6ffb86
tree80887300f8bb022c3275cc42ef5f91d1869e0e41
parentb38579aeb5b04fb34828843457f6d9d6fa3b79c3
wifi: mac80211: check wiphy mutex in ops

Check that we hold the wiphy mutex in the ops when
calling the driver, since we're now on our way to
always hold it, and simplify the locking.

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/driver-ops.c
net/mac80211/driver-ops.h