diff options
author | Vivek Natarajan <vivek.natraj@gmail.com> | 2009-01-20 00:47:08 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:01:03 -0500 |
commit | 3cbb5dd73697b3f1c677daffe29f00ace22b71e9 (patch) | |
tree | 39fcb371ef37b9a2a53a4cdf72a8e98c64d9e98e /drivers/net/wireless/ath9k/recv.c | |
parent | c5d0569882b9c264be31dcb0758961bfc479deea (diff) |
ath9k: Enable dynamic power save in ath9k.
This patch implements dynamic power save feature for ath9k.
Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/recv.c')
-rw-r--r-- | drivers/net/wireless/ath9k/recv.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath9k/recv.c b/drivers/net/wireless/ath9k/recv.c index 648bb49e6734..8da08f9b463c 100644 --- a/drivers/net/wireless/ath9k/recv.c +++ b/drivers/net/wireless/ath9k/recv.c | |||
@@ -628,6 +628,12 @@ int ath_rx_tasklet(struct ath_softc *sc, int flush) | |||
628 | } else { | 628 | } else { |
629 | sc->rx.rxotherant = 0; | 629 | sc->rx.rxotherant = 0; |
630 | } | 630 | } |
631 | |||
632 | if (ieee80211_is_beacon(hdr->frame_control) && | ||
633 | (sc->sc_flags & SC_OP_WAIT_FOR_BEACON)) { | ||
634 | sc->sc_flags &= ~SC_OP_WAIT_FOR_BEACON; | ||
635 | ath9k_hw_setpower(sc->sc_ah, ATH9K_PM_NETWORK_SLEEP); | ||
636 | } | ||
631 | requeue: | 637 | requeue: |
632 | list_move_tail(&bf->list, &sc->rx.rxbuf); | 638 | list_move_tail(&bf->list, &sc->rx.rxbuf); |
633 | ath_rx_buf_link(sc, bf); | 639 | ath_rx_buf_link(sc, bf); |