]> git.baikalelectronics.ru Git - kernel.git/commit
ath5k: read eeprom IQ calibration values correctly for G mode
authorBruno Randolf <br1@einfach.org>
Tue, 9 Mar 2010 07:56:10 +0000 (16:56 +0900)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 10 Mar 2010 21:16:57 +0000 (16:16 -0500)
commit0caf2250a1d6974c2987e9469116b09ad86acb0d
tree261dbdd87c8f7593d917a078ccdde8281ab31db9
parentfc7134503038806b9f3fb2a681750ca8e9cb9fca
ath5k: read eeprom IQ calibration values correctly for G mode

we read the IQ correction values (i_cal and q_cal) for G mode from a wrong
location (the same shifts as for A mode is applied which is incorrect). use
correct locations, matching the docs and HAL sources.

also we should write IQ correction only when we have that information in the
EEPROM, starting from version 4. also write it in the same way as we do in the
periodic recalibration (enable last), just to be sure.

Signed-off-by: Bruno Randolf <br1@einfach.org>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/eeprom.c
drivers/net/wireless/ath/ath5k/reset.c