wifi: nl80211: acquire wdev mutex earlier in start_ap
authorJohannes Berg <johannes.berg@intel.com>
Mon, 27 Jun 2022 10:49:03 +0000 (12:49 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 1 Jul 2022 09:18:38 +0000 (11:18 +0200)
commitc2653990d5729a445296d6d04395be5dea8e282e
tree6f6271dc957c95abbd41661ac33f82e9530d133b
parent206bbcf76121664e95a42e1c014c3fe168d07a3d
wifi: nl80211: acquire wdev mutex earlier in start_ap

We need to hold the wdev mutex already in order to call
nl80211_parse_tx_bitrate_mask(), so acquire it earlier.

Fixes: 7b0a0e3c3a88 ("wifi: cfg80211: do some rework towards MLO link APIs")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c