Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 342103
b: refs/heads/master
c: d882d24
h: refs/heads/master
i:
  342101: 7e36f88
  342099: 68454be
  342095: 5338b35
v: v3
  • Loading branch information
Sujith Manoharan authored and John W. Linville committed Dec 10, 2012
1 parent 673a5d1 commit dc102af
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 36d2943ba738a601e29cbd86fa6ab6ac838f3905
refs/heads/master: d882d242e4bfb2016e611a5aab0112fcece7a8ac
6 changes: 5 additions & 1 deletion trunk/drivers/net/wireless/ath/ath9k/ar9003_paprd.c
Original file line number Diff line number Diff line change
Expand Up @@ -965,9 +965,13 @@ EXPORT_SYMBOL(ar9003_paprd_init_table);
bool ar9003_paprd_is_done(struct ath_hw *ah)
{
int paprd_done, agc2_pwr;

paprd_done = REG_READ_FIELD(ah, AR_PHY_PAPRD_TRAINER_STAT1,
AR_PHY_PAPRD_TRAINER_STAT1_PAPRD_TRAIN_DONE);

if (AR_SREV_9485(ah))
goto exit;

if (paprd_done == 0x1) {
agc2_pwr = REG_READ_FIELD(ah, AR_PHY_PAPRD_TRAINER_STAT1,
AR_PHY_PAPRD_TRAINER_STAT1_PAPRD_AGC2_PWR);
Expand All @@ -983,7 +987,7 @@ bool ar9003_paprd_is_done(struct ath_hw *ah)
if (agc2_pwr <= PAPRD_IDEAL_AGC2_PWR_RANGE)
paprd_done = 0;
}

exit:
return !!paprd_done;
}
EXPORT_SYMBOL(ar9003_paprd_is_done);

0 comments on commit dc102af

Please sign in to comment.