diff options
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c index dd17909bd903..5f75f70db5a7 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c | |||
@@ -1218,6 +1218,11 @@ static void ath9k_htc_stop(struct ieee80211_hw *hw) | |||
1218 | int ret = 0; | 1218 | int ret = 0; |
1219 | u8 cmd_rsp; | 1219 | u8 cmd_rsp; |
1220 | 1220 | ||
1221 | /* Cancel all the running timers/work .. */ | ||
1222 | cancel_work_sync(&priv->ps_work); | ||
1223 | cancel_delayed_work_sync(&priv->ath9k_led_blink_work); | ||
1224 | ath9k_led_stop_brightness(priv); | ||
1225 | |||
1221 | mutex_lock(&priv->mutex); | 1226 | mutex_lock(&priv->mutex); |
1222 | 1227 | ||
1223 | if (priv->op_flags & OP_INVALID) { | 1228 | if (priv->op_flags & OP_INVALID) { |
@@ -1226,11 +1231,6 @@ static void ath9k_htc_stop(struct ieee80211_hw *hw) | |||
1226 | return; | 1231 | return; |
1227 | } | 1232 | } |
1228 | 1233 | ||
1229 | /* Cancel all the running timers/work .. */ | ||
1230 | cancel_work_sync(&priv->ps_work); | ||
1231 | cancel_delayed_work_sync(&priv->ath9k_led_blink_work); | ||
1232 | ath9k_led_stop_brightness(priv); | ||
1233 | |||
1234 | ath9k_htc_ps_wakeup(priv); | 1234 | ath9k_htc_ps_wakeup(priv); |
1235 | htc_stop(priv->htc); | 1235 | htc_stop(priv->htc); |
1236 | WMI_CMD(WMI_DISABLE_INTR_CMDID); | 1236 | WMI_CMD(WMI_DISABLE_INTR_CMDID); |