Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202771
b: refs/heads/master
c: 9537a16
h: refs/heads/master
i:
  202769: def9b5a
  202767: bc8f998
v: v3
  • Loading branch information
Bruno Randolf authored and John W. Linville committed Jun 2, 2010
1 parent 2436016 commit cd28604
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 40ca22eafeb61ee1419dd7c4c2698459183c582c
refs/heads/master: 9537a1623359fd24ec95ba1fe60528c70e84b2a2
9 changes: 5 additions & 4 deletions trunk/drivers/net/wireless/ath/ath5k/ani.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,14 +481,15 @@ ath5k_ani_calibration(struct ath5k_hw *ah)
struct ath5k_ani_state *as = &ah->ah_sc->ani_state;
int listen, ofdm_high, ofdm_low, cck_high, cck_low;

if (as->ani_mode != ATH5K_ANI_MODE_AUTO)
return;

/* get listen time since last call and add it to the counter because we
* might not have restarted the "ani period" last time */
* might not have restarted the "ani period" last time.
* always do this to calculate the busy time also in manual mode */
listen = ath5k_hw_ani_get_listen_time(ah, as);
as->listen_time += listen;

if (as->ani_mode != ATH5K_ANI_MODE_AUTO)
return;

ath5k_ani_save_and_clear_phy_errors(ah, as);

ofdm_high = as->listen_time * ATH5K_ANI_OFDM_TRIG_HIGH / 1000;
Expand Down

0 comments on commit cd28604

Please sign in to comment.