Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150415
b: refs/heads/master
c: 1ffc1c6
h: refs/heads/master
i:
  150413: 5fc4081
  150411: 66c7ee9
  150407: 9efd1ef
  150399: 18e263d
v: v3
  • Loading branch information
Jouni Malinen authored and John W. Linville committed May 20, 2009
1 parent 10020ff commit 32c6836
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9a23f9ca50943c1b4535d22b3acda3c31b4ad072
refs/heads/master: 1ffc1c61bdbe31105d99d65043bbf7ae6d24dbc7
8 changes: 8 additions & 0 deletions trunk/drivers/net/wireless/ath/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,12 @@ static void ath_ani_calibrate(unsigned long data)
if (sc->sc_flags & SC_OP_SCANNING)
goto set_timer;

/* Only calibrate if awake */
if (sc->sc_ah->power_mode != ATH9K_PM_AWAKE)
goto set_timer;

ath9k_ps_wakeup(sc);

/* Long calibration runs independently of short calibration. */
if ((timestamp - sc->ani.longcal_timer) >= ATH_LONG_CALINTERVAL) {
longcal = true;
Expand Down Expand Up @@ -380,6 +386,8 @@ static void ath_ani_calibrate(unsigned long data)
}
}

ath9k_ps_restore(sc);

set_timer:
/*
* Set timer interval based on previous results.
Expand Down

0 comments on commit 32c6836

Please sign in to comment.