Commit e874e658 authored by Bob Copeland's avatar Bob Copeland Committed by John W. Linville

mac80211: flush workqueue a second time in suspend()

Drivers can theoretically queue more work in one of their callbacks
from mac80211 suspend, so let's flush it once more to be on the safe
side, just before calling ->stop().
Signed-off-by: default avatarBob Copeland <me@bobcopeland.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 30d3ef41
...@@ -44,6 +44,9 @@ int __ieee80211_suspend(struct ieee80211_hw *hw) ...@@ -44,6 +44,9 @@ int __ieee80211_suspend(struct ieee80211_hw *hw)
} }
} }
/* flush again, in case driver queued work */
flush_workqueue(local->hw.workqueue);
/* stop hardware */ /* stop hardware */
if (local->open_count) { if (local->open_count) {
ieee80211_led_radio(local, false); ieee80211_led_radio(local, false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment