Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135083
b: refs/heads/master
c: 541d8dd
h: refs/heads/master
i:
  135081: 2c59d26
  135079: 2aca29c
v: v3
  • Loading branch information
Vivek Natarajan authored and John W. Linville committed Mar 5, 2009
1 parent e5cdabd commit b860cc6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9331ec8060da5783307a565792ded33bfb9e54fc
refs/heads/master: 541d8dd5e848aa5f8223a9e8e13b369d64865f07
3 changes: 2 additions & 1 deletion trunk/drivers/net/wireless/ath9k/ath9k.h
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,8 @@ static inline void ath9k_ps_wakeup(struct ath_softc *sc)
static inline void ath9k_ps_restore(struct ath_softc *sc)
{
if (atomic_dec_and_test(&sc->ps_usecount))
if (sc->hw->conf.flags & IEEE80211_CONF_PS)
if ((sc->hw->conf.flags & IEEE80211_CONF_PS) &&
!(sc->sc_flags & SC_OP_WAIT_FOR_BEACON))
ath9k_hw_setpower(sc->sc_ah,
sc->sc_ah->restore_mode);
}
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/wireless/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit b860cc6

Please sign in to comment.