/* wowlan is enabled -- don't reconfig on resume */
        bool wowlan;
 
-       struct work_struct radar_detected_work;
+       struct wiphy_work radar_detected_work;
 
        /* number of RX chains the hardware has */
        u8 rx_chains;
 
 void ieee80211_dfs_cac_timer_work(struct wiphy *wiphy, struct wiphy_work *work);
 void ieee80211_dfs_cac_cancel(struct ieee80211_local *local);
-void ieee80211_dfs_radar_detected_work(struct work_struct *work);
+void ieee80211_dfs_radar_detected_work(struct wiphy *wiphy,
+                                      struct wiphy_work *work);
 int ieee80211_send_action_csa(struct ieee80211_sub_if_data *sdata,
                              struct cfg80211_csa_settings *csa_settings);
 
 
        /* wait for scan work complete */
        flush_workqueue(local->workqueue);
        flush_work(&local->sched_scan_stopped_work);
-       flush_work(&local->radar_detected_work);
 
        rtnl_lock();
        /* we might do interface manipulations, so need both */
 
        INIT_WORK(&local->restart_work, ieee80211_restart_work);
 
-       INIT_WORK(&local->radar_detected_work,
-                 ieee80211_dfs_radar_detected_work);
+       wiphy_work_init(&local->radar_detected_work,
+                       ieee80211_dfs_radar_detected_work);
 
        INIT_WORK(&local->reconfig_filter, ieee80211_reconfig_filter);
        local->smps_mode = IEEE80211_SMPS_OFF;
         */
        ieee80211_remove_interfaces(local);
 
+       wiphy_lock(local->hw.wiphy);
+       wiphy_work_cancel(local->hw.wiphy, &local->radar_detected_work);
+       wiphy_unlock(local->hw.wiphy);
        rtnl_unlock();
 
        cancel_delayed_work_sync(&local->roc_work);
        cancel_work_sync(&local->restart_work);
        cancel_work_sync(&local->reconfig_filter);
        flush_work(&local->sched_scan_stopped_work);
-       flush_work(&local->radar_detected_work);
 
        ieee80211_clear_tx_pending(local);
        rate_control_deinitialize(local);
 
        mutex_unlock(&local->mtx);
 }
 
-void ieee80211_dfs_radar_detected_work(struct work_struct *work)
+void ieee80211_dfs_radar_detected_work(struct wiphy *wiphy,
+                                      struct wiphy_work *work)
 {
        struct ieee80211_local *local =
                container_of(work, struct ieee80211_local, radar_detected_work);
        }
        mutex_unlock(&local->chanctx_mtx);
 
-       wiphy_lock(local->hw.wiphy);
        ieee80211_dfs_cac_cancel(local);
-       wiphy_unlock(local->hw.wiphy);
 
        if (num_chanctx > 1)
                /* XXX: multi-channel is not supported yet */
 
        trace_api_radar_detected(local);
 
-       schedule_work(&local->radar_detected_work);
+       wiphy_work_queue(hw->wiphy, &local->radar_detected_work);
 }
 EXPORT_SYMBOL(ieee80211_radar_detected);