diff options
author | Sujith Manoharan <Sujith.Manoharan@atheros.com> | 2011-04-28 10:44:05 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-29 19:36:15 (GMT) |
commit | d244f21e79162b829c9af09845421d9b4fac4253 (patch) | |
tree | 5220722b8938e258f4f3eab67f7eaedd3e88800e /drivers/net/wireless/ath/ath9k/htc_drv_main.c | |
parent | 22450902e4a13479acf6f4e93475af7ca1829d92 (diff) | |
download | linux-fsl-qoriq-d244f21e79162b829c9af09845421d9b4fac4253.tar.xz |
ath9k_htc: Revamp LED management
Remove all the convoluted hacks in the driver and simplify things
by making use of mac80211's LED triggers.
Signed-off-by: Sujith Manoharan <Sujith.Manoharan@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.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c index e9746e8..5aa104f 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c @@ -1003,9 +1003,11 @@ static void ath9k_htc_stop(struct ieee80211_hw *hw) /* Cancel all the running timers/work .. */ cancel_work_sync(&priv->fatal_work); cancel_work_sync(&priv->ps_work); - cancel_delayed_work_sync(&priv->ath9k_led_blink_work); + +#ifdef CONFIG_MAC80211_LEDS + cancel_work_sync(&priv->led_work); +#endif ath9k_htc_stop_ani(priv); - ath9k_led_stop_brightness(priv); mutex_lock(&priv->mutex); |