]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 13:16:20 +0000 (15:16 +0200)
commit07f8ea3000f302759c32496cbb81403f6db676ed
tree7e3707778294992207fe2a0252eb22abce4134f7
parentd94f6d8453330eb26375fc6ed09017bd7b60375d
wifi: nl80211: acquire wdev mutex earlier in start_ap

commit c2653990d5729a445296d6d04395be5dea8e282e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/nl80211.c