]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k_hw: make sure PAPRD training is properly done
authorMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Fri, 17 Jun 2011 08:38:42 +0000 (14:08 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 20 Jun 2011 19:34:18 +0000 (15:34 -0400)
commitdaf6526f9f6bd9b9275f5d90c1b4b417990089f4
treedb1878c8d194c271fe5e1caaa12b2a2f160ffa01
parentd0a37ad59e70c460102638e301818f333a6f1c76
ath9k_hw: make sure PAPRD training is properly done

checking the status of PAPRD_AGC2_POWER(Log(ADC_power) measured after
last gain-change in dB) field suggests whether the PAPRD is completely/properly
done. This is an additional check apart from polling for PAPRD done bit being set.
        Susinder suggests that the ideal power range value should be
0xf0 to 0xfe. With AR9382 we do have the values in this range. to have a
common check for all platforms we take agc2_power should be atleast greater
than 0xe0

Cc: susinder@qca.qualcomm.com
Cc: senthilb@qca.qualcomm.com
Cc: kmuthusa@qca.qualcomm.com
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_paprd.c
drivers/net/wireless/ath/ath9k/hw.h