Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107693
b: refs/heads/master
c: e2a0cce
h: refs/heads/master
i:
  107691: 1577973
v: v3
  • Loading branch information
Nick Kossifidis authored and John W. Linville committed Aug 1, 2008
1 parent 20a6835 commit 2886f25
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 2203d6be7ed17af81a1dc35a0af9806086743b02
refs/heads/master: e2a0ccebc4ffabc1c7234cfd324299b5a936e0f2
13 changes: 13 additions & 0 deletions trunk/drivers/net/wireless/ath5k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,19 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum ieee80211_if_types op_mode,
mdelay(1);
}

/*
* Perform ADC test (?)
*/
data = ath5k_hw_reg_read(ah, AR5K_PHY_TST1);
ath5k_hw_reg_write(ah, AR5K_PHY_TST1_TXHOLD, AR5K_PHY_TST1);
for (i = 0; i <= 20; i++) {
if (!(ath5k_hw_reg_read(ah, AR5K_PHY_ADC_TEST) & 0x10))
break;
udelay(200);
}
ath5k_hw_reg_write(ah, data, AR5K_PHY_TST1);
data = 0;

/*
* Enable calibration and wait until completion
*/
Expand Down

0 comments on commit 2886f25

Please sign in to comment.