提交 9ed21d39 编写于 作者: L Luis R. Rodriguez 提交者: John W. Linville

at76c50x-usb: cancel scan work at stop callback

This should fix suspend as mac80211 expects all work queued
to the mac80211 workqueue to be canceled at driver stop().
Signed-off-by: NLuis R. Rodriguez <lrodriguez@atheros.com>
Acked-by: NKalle Valo <kalle.valo@iki.fi>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 ebc8ab17
...@@ -1773,6 +1773,7 @@ static void at76_mac80211_stop(struct ieee80211_hw *hw) ...@@ -1773,6 +1773,7 @@ static void at76_mac80211_stop(struct ieee80211_hw *hw)
at76_dbg(DBG_MAC80211, "%s()", __func__); at76_dbg(DBG_MAC80211, "%s()", __func__);
cancel_delayed_work(&priv->dwork_hw_scan);
cancel_work_sync(&priv->work_set_promisc); cancel_work_sync(&priv->work_set_promisc);
mutex_lock(&priv->mtx); mutex_lock(&priv->mtx);
...@@ -2298,7 +2299,6 @@ static void at76_delete_device(struct at76_priv *priv) ...@@ -2298,7 +2299,6 @@ static void at76_delete_device(struct at76_priv *priv)
tasklet_kill(&priv->rx_tasklet); tasklet_kill(&priv->rx_tasklet);
if (priv->mac80211_registered) { if (priv->mac80211_registered) {
cancel_delayed_work(&priv->dwork_hw_scan);
flush_workqueue(priv->hw->workqueue); flush_workqueue(priv->hw->workqueue);
ieee80211_unregister_hw(priv->hw); ieee80211_unregister_hw(priv->hw);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册