]> 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)
commit9428ed0a3d8fb66bfa96208a731554a26c21544e
treedb1878c8d194c271fe5e1caaa12b2a2f160ffa01
parent7b2001ceab41af57a54252fb102ce6db2ac2c4c8
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