projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65b7fc9
)
ath5k: avoid unneeded calibration error messages
author
Fabio Rossi
<rossi.f@inwind.it>
Wed, 8 Sep 2010 20:37:41 +0000
(22:37 +0200)
committer
John W. Linville
<linville@tuxdriver.com>
Tue, 14 Sep 2010 20:05:56 +0000
(16:05 -0400)
Don't generate calibration errors messages when not needed.
Signed-off-by: Fabio Rossi <rossi.f@inwind.it>
Acked-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/phy.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath5k/phy.c
b/drivers/net/wireless/ath/ath5k/phy.c
index
984ba92
..
4932bf2
100644
(file)
--- a/
drivers/net/wireless/ath/ath5k/phy.c
+++ b/
drivers/net/wireless/ath/ath5k/phy.c
@@
-1377,7
+1377,7
@@
ath5k_hw_rf511x_iq_calibrate(struct ath5k_hw *ah)
/* protect against divide by 0 and loss of sign bits */
if (i_coffd == 0 || q_coffd < 2)
- return
-1
;
+ return
0
;
i_coff = (-iq_corr) / i_coffd;
i_coff = clamp(i_coff, -32, 31); /* signed 6 bit */