diff options
author | Vivek Natarajan <vivek.natraj@gmail.com> | 2009-03-02 20:25:14 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-03-05 14:39:39 -0500 |
commit | 541d8dd5e848aa5f8223a9e8e13b369d64865f07 (patch) | |
tree | 4a1766e8ff056f60889935a98883468ad933a8af /drivers/net/wireless/ath9k/main.c | |
parent | 9331ec8060da5783307a565792ded33bfb9e54fc (diff) | |
download | blackbird-op-linux-541d8dd5e848aa5f8223a9e8e13b369d64865f07.tar.gz blackbird-op-linux-541d8dd5e848aa5f8223a9e8e13b369d64865f07.zip |
ath9k: Handle power modes in isr for power save.
Restore network sleep mode in isr if power save is enabled.
Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath9k/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index 28200ce1d88e..7effa0c40b8a 100644 --- a/drivers/net/wireless/ath9k/main.c +++ b/drivers/net/wireless/ath9k/main.c @@ -516,6 +516,7 @@ irqreturn_t ath_isr(int irq, void *dev) return IRQ_NONE; sc->intrstatus = status; + ath9k_ps_wakeup(sc); if (status & ATH9K_INT_FATAL) { /* need a chip reset */ @@ -581,6 +582,7 @@ irqreturn_t ath_isr(int irq, void *dev) sched = true; } } + ath9k_ps_restore(sc); } while (0); ath_debug_stat_interrupt(sc, status); |