]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: nl80211: relax wdev mutex check in wdev_chandef()
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:42:58 +0000 (11:42 +0200)
commitc00dd25e47b46ab6eb963dcb7e665b935ecf5a3c
tree764c6871b5773f8e8cbe69b7d0ac256abbe0fffb
parent803f624f04dd609410e66bf40f06437187829a15
wifi: nl80211: relax wdev mutex check in wdev_chandef()

In many cases we might get here from driver code that's
not really set up to care about the locking, and for the
non-MLO cases we really don't care so much about it. So
relax the checking here for now, perhaps we should even
remove it completely since we might not really care if
we point to an invalid link's chandef and can require
the caller to check the link validity first.

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