Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 159275
b: refs/heads/master
c: cbdec97
h: refs/heads/master
i:
  159273: b447b7c
  159271: 16163cf
v: v3
  • Loading branch information
Gabor Juhos authored and John W. Linville committed Jul 29, 2009
1 parent 9f54971 commit a2702a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 96148326c4b54db5c384def1a5ab285c359d1395
refs/heads/master: cbdec9758736c30ecbb03651b0c2915c442a5895
8 changes: 6 additions & 2 deletions trunk/drivers/net/wireless/ath/ath9k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,8 @@ static struct ath_hw *ath9k_hw_newstate(u16 devid, struct ath_softc *sc,

ah->gbeacon_rate = 0;

ah->power_mode = ATH9K_PM_UNDEFINED;

return ah;
}

Expand Down Expand Up @@ -2819,6 +2821,9 @@ static bool ath9k_hw_setpower_nolock(struct ath_hw *ah,
"UNDEFINED"
};

if (ah->power_mode == mode)
return status;

DPRINTF(ah->ah_sc, ATH_DBG_RESET, "%s -> %s\n",
modes[ah->power_mode], modes[mode]);

Expand Down Expand Up @@ -2863,8 +2868,7 @@ void ath9k_ps_wakeup(struct ath_softc *sc)
if (++sc->ps_usecount != 1)
goto unlock;

if (sc->sc_ah->power_mode != ATH9K_PM_AWAKE)
ath9k_hw_setpower_nolock(sc->sc_ah, ATH9K_PM_AWAKE);
ath9k_hw_setpower_nolock(sc->sc_ah, ATH9K_PM_AWAKE);

unlock:
spin_unlock_irqrestore(&sc->sc_pm_lock, flags);
Expand Down

0 comments on commit a2702a8

Please sign in to comment.