Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193737
b: refs/heads/master
c: 49a85d2
h: refs/heads/master
i:
  193735: 87a5e85
v: v3
  • Loading branch information
Bruno Randolf authored and John W. Linville committed Mar 10, 2010
1 parent 855e097 commit ea8101a
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 7644395f8df9aa5b42af268a485b83e44bba2784
refs/heads/master: 49a85d211a63ad1d565842ebc535c5168d85d86a
11 changes: 9 additions & 2 deletions trunk/drivers/net/wireless/ath/ath5k/phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1391,7 +1391,11 @@ static int ath5k_hw_rf511x_calibrate(struct ath5k_hw *ah,
}

i_coffd = ((i_pwr >> 1) + (q_pwr >> 1)) >> 7;
q_coffd = q_pwr >> 7;

if (ah->ah_version == AR5K_AR5211)
q_coffd = q_pwr >> 6;
else
q_coffd = q_pwr >> 7;

/* No correction */
if (i_coffd == 0 || q_coffd == 0)
Expand All @@ -1405,7 +1409,10 @@ static int ath5k_hw_rf511x_calibrate(struct ath5k_hw *ah,
if (i_coff < -32)
i_coff = -32;

q_coff = (((s32)i_pwr / q_coffd) - 128);
if (ah->ah_version == AR5K_AR5211)
q_coff = (i_pwr / q_coffd) - 64;
else
q_coff = (i_pwr / q_coffd) - 128;

/* Boundary check */
if (q_coff > 15)
Expand Down

0 comments on commit ea8101a

Please sign in to comment.