Merge tag 'mac80211-next-for-net-next-2021-02-12' of git://git.kernel.org/pub/scm...
[linux-2.6-microblaze.git] / net / mac80211 / pm.c
index ae378a4..7809a90 100644 (file)
@@ -1,4 +1,8 @@
 // SPDX-License-Identifier: GPL-2.0
+/*
+ * Portions
+ * Copyright (C) 2020-2021 Intel Corporation
+ */
 #include <net/mac80211.h>
 #include <net/rtnetlink.h>
 
@@ -11,7 +15,7 @@ static void ieee80211_sched_scan_cancel(struct ieee80211_local *local)
 {
        if (ieee80211_request_sched_scan_stop(local))
                return;
-       cfg80211_sched_scan_stopped_rtnl(local->hw.wiphy, 0);
+       cfg80211_sched_scan_stopped_locked(local->hw.wiphy, 0);
 }
 
 int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan)