wext: call cfg80211_set_encryption() with wiphy lock held
authorJohannes Berg <johannes.berg@intel.com>
Thu, 28 Jan 2021 17:35:27 +0000 (18:35 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 28 Jan 2021 18:10:57 +0000 (19:10 +0100)
commitc88f952026ab0b860451bdc88f43d73124a7302a
tree9de867cfab9513bd544d7a61c110e320c491fade
parentbae173563cbf469533d0c38534b874d4a2df0c85
wext: call cfg80211_set_encryption() with wiphy lock held

Similar to the previous commit, we need to hold the wiphy lock
here. There's a second instance that is correct already, fix
this one as well.

Fixes: a05829a7222e ("cfg80211: avoid holding the RTNL when calling the driver")
Link: https://lore.kernel.org/r/20210128183454.ea2f086465ed.I891d3bb44f068e6d97c160005010f052f28ab6e5@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/wext-compat.c