提交 e874e658 编写于 作者: B Bob Copeland 提交者: 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: NBob Copeland <me@bobcopeland.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 30d3ef41
......@@ -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 */
if (local->open_count) {
ieee80211_led_radio(local, false);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册