wifi: mac80211: adjust scan cancel comment/check
authorJohannes Berg <johannes.berg@intel.com>
Wed, 1 Mar 2023 10:09:14 +0000 (12:09 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 7 Mar 2023 09:28:51 +0000 (10:28 +0100)
commit0fd3af61731567dc0ad798c88c20f6d63fe331ea
treeb88732afacc14b5033cba04a3a42328449992593
parentd509c55cda22096a1836e35b03f66e1ef411c0c2
wifi: mac80211: adjust scan cancel comment/check

Instead of the comment about holding RTNL, which is now wrong,
add a proper lockdep assertion for the wiphy mutex.

Fixes: a05829a7222e ("cfg80211: avoid holding the RTNL when calling the driver")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230301115906.84352e46f342.Id90fef8c581cebe19cb30274340cf43885d55c74@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/scan.c