wifi: mac80211: mlme: move disconnects to wiphy work
[platform/kernel/linux-starfive.git] / net / mac80211 / main.c
index 3db178b..24315d7 100644 (file)
@@ -364,7 +364,8 @@ static void ieee80211_restart_work(struct work_struct *work)
                         * The exception is ieee80211_chswitch_done.
                         * Then we can have a race...
                         */
-                       cancel_work_sync(&sdata->u.mgd.csa_connection_drop_work);
+                       wiphy_work_cancel(local->hw.wiphy,
+                                         &sdata->u.mgd.csa_connection_drop_work);
                        if (sdata->vif.bss_conf.csa_active) {
                                sdata_lock(sdata);
                                ieee80211_sta_connection_lost(sdata,