aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/htc_drv_main.c
diff options
context:
space:
mode:
authorRajkumar Manoharan <rmanoharan@atheros.com>2011-01-31 13:17:42 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-02-03 16:44:42 -0500
commit45655baa42ce4116dd8a8d93832d75b4b264137a (patch)
treef286b9c39628d419b52c0e42929d797be6355bb2 /drivers/net/wireless/ath/ath9k/htc_drv_main.c
parentbf6a0579f60ae5225280c82cc52b51db1255e7fb (diff)
ath9k_htc: cancel ani work in ath9k_htc_stop
ani work is cancelled in dissaoctiation. But in some cases during suspend, deauthention never be called. So we failed to stop ani work which was identified by the following warning. Call Trace: [<ffffffffa0454a1d>] ieee80211_can_queue_work.clone.17+0x2d/0x40 [mac80211] [<ffffffffa0454a60>] ieee80211_queue_delayed_work+0x30/0x60 [mac80211] [<ffffffffa0567f82>] ath9k_ani_work+0x142/0x250 [ath9k_htc] [<ffffffff81073c70>] async_run_entry_fn+0x0/0x180 [<ffffffffa0567e40>] ath9k_ani_work+0x0/0x250 [ath9k_htc] Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/htc_drv_main.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/htc_drv_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
index a702089f18d..0526c259a63 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
@@ -1052,6 +1052,7 @@ static void ath9k_htc_stop(struct ieee80211_hw *hw)
1052 cancel_work_sync(&priv->fatal_work); 1052 cancel_work_sync(&priv->fatal_work);
1053 cancel_work_sync(&priv->ps_work); 1053 cancel_work_sync(&priv->ps_work);
1054 cancel_delayed_work_sync(&priv->ath9k_led_blink_work); 1054 cancel_delayed_work_sync(&priv->ath9k_led_blink_work);
1055 cancel_delayed_work_sync(&priv->ath9k_ani_work);
1055 ath9k_led_stop_brightness(priv); 1056 ath9k_led_stop_brightness(priv);
1056 1057
1057 mutex_lock(&priv->mutex); 1058 mutex_lock(&priv->mutex);