From: Sujith Manoharan Date: Wed, 11 Sep 2013 11:06:32 +0000 (+0530) Subject: ath9k: Fix PeakDetect calibration for AR9462 X-Git-Tag: v3.13-rc1~105^2~225^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3001f0d00bcb77d818efa331864d69a9338550e6;p=pandora-kernel.git ath9k: Fix PeakDetect calibration for AR9462 Since HW PeakDetect calibration is turned on for AR9462, various conditions have to be handled in the driver: * Enable agc_cal when loading RTT fails. * Disable SW PeakDetect calibration when RTT calibration is not enabled. * Keep SW PeakDetect calibration result in driver. * Update RTT table according to the saved value. * Write RTT back after modifying SW RTT table. * Enable local mode for PeakDetect calibration and restore values. Signed-off-by: Sujith Manoharan Signed-off-by: John W. Linville --- Reading git-diff-tree failed