wifi: cfg80211: fix locking in sched scan stop work
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Jun 2023 12:34:47 +0000 (14:34 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 6 Jun 2023 12:51:25 +0000 (14:51 +0200)
commit3e54ed8247c94c8bdf370bd872bd9dfe72b1b12b
treeb9fbc430168cdfa8ffd4d2d4b2ca3dcfd64c1e78
parent7a4615b9a9da5225b22b36a20508555dd133ac24
wifi: cfg80211: fix locking in sched scan stop work

This should use wiphy_lock() now instead of acquiring the
RTNL, since cfg80211_stop_sched_scan_req() now needs that.

Fixes: a05829a7222e ("cfg80211: avoid holding the RTNL when calling the driver")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c