diff mbox

mac80211: flush workqueue before calling driver ->stop() method

Message ID 20100110130752.GG1735@mail.wantstofly.org (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Lennert Buytenhek Jan. 10, 2010, 1:07 p.m. UTC
None
diff mbox

Patch

diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index bc73904..04680ca 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -1077,9 +1077,9 @@  void ieee80211_stop_device(struct ieee80211_local *local)
 	ieee80211_led_radio(local, false);
 
 	cancel_work_sync(&local->reconfig_filter);
-	drv_stop(local);
 
 	flush_workqueue(local->workqueue);
+	drv_stop(local);
 }
 
 int ieee80211_reconfig(struct ieee80211_local *local)