diff options
author | Vivek Natarajan <vnatarajan@atheros.com> | 2010-06-22 10:22:37 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-23 23:14:05 +0400 |
commit | 9a75c2ff6d539da0a565b5d64605031950b0853e (patch) | |
tree | b928b6c55ee6cb108f444c4f38f99ffee5c28c0d /drivers/net/wireless/ath/ath9k/main.c | |
parent | ee031112d9eef5508f765ebc90ab488e01db002e (diff) | |
download | linux-9a75c2ff6d539da0a565b5d64605031950b0853e.tar.xz |
ath9k: Add a module parameter to disable led blinking.
Some vendors require the LED to be ON always irrespective of any
radio activity. Introducing a module parameter to disable blinking,
so that one can choose between always on or led blink during
activity.
Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
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 c8de50fa6378..5af259644bf6 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) aphy->state = ATH_WIPHY_INACTIVE; - cancel_delayed_work_sync(&sc->ath_led_blink_work); + if (led_blink) + cancel_delayed_work_sync(&sc->ath_led_blink_work); + cancel_delayed_work_sync(&sc->tx_complete_work); cancel_work_sync(&sc->paprd_work); |