wifi: cfg80211: hold wiphy lock when sending wiphy
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Jun 2023 12:49:24 +0000 (14:49 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 7 Jun 2023 17:53:13 +0000 (19:53 +0200)
commit4d45145ba6e2e1c0eba4ebda7d6273319191f4e8
tree1c003b34c56b77dfbc1b980d7cc8caab70e2f013
parent7d2d0ff49dfdb38ad37baa9a27c0132d5e51a923
wifi: cfg80211: hold wiphy lock when sending wiphy

Sending the wiphy out might cause calls to the driver,
notably get_txq_stats() and get_antenna(). These aren't
very important, since the normally have their own locks
and/or just send out static data, but if the contract
should be that the wiphy lock is always held, these are
also affected. Fix that.

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