diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index c8de50fa637..5af259644bf 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -1241,7 +1241,9 @@ static void ath9k_stop(struct ieee80211_hw *hw) | |||
1241 | 1241 | ||
1242 | aphy->state = ATH_WIPHY_INACTIVE; | 1242 | aphy->state = ATH_WIPHY_INACTIVE; |
1243 | 1243 | ||
1244 | cancel_delayed_work_sync(&sc->ath_led_blink_work); | 1244 | if (led_blink) |
1245 | cancel_delayed_work_sync(&sc->ath_led_blink_work); | ||
1246 | |||
1245 | cancel_delayed_work_sync(&sc->tx_complete_work); | 1247 | cancel_delayed_work_sync(&sc->tx_complete_work); |
1246 | cancel_work_sync(&sc->paprd_work); | 1248 | cancel_work_sync(&sc->paprd_work); |
1247 | 1249 | ||