aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/calib.c
diff options
context:
space:
mode:
authorVivek Natarajan <vnatarajan@atheros.com>2011-03-10 00:35:43 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-03-11 14:15:36 -0500
commit23952ec92850bcdc91b8167fa95ec05dd59a80ea (patch)
tree4568eb0e61861911d406b3b03fc7ee73323d2830 /drivers/net/wireless/ath/ath9k/calib.c
parent75e03512455827eb2c09e057578ae23178a93cf8 (diff)
ath9k_hw: Increase the wait count for nf load.
Increasing the wait count makes the nf load pass in most of the cases. Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/calib.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/calib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/calib.c b/drivers/net/wireless/ath/ath9k/calib.c
index b4a92a4313f6..8649581fa4dd 100644
--- a/drivers/net/wireless/ath/ath9k/calib.c
+++ b/drivers/net/wireless/ath/ath9k/calib.c
@@ -262,7 +262,7 @@ void ath9k_hw_loadnf(struct ath_hw *ah, struct ath9k_channel *chan)
262 * since 250us often results in NF load timeout and causes deaf 262 * since 250us often results in NF load timeout and causes deaf
263 * condition during stress testing 12/12/2009 263 * condition during stress testing 12/12/2009
264 */ 264 */
265 for (j = 0; j < 1000; j++) { 265 for (j = 0; j < 10000; j++) {
266 if ((REG_READ(ah, AR_PHY_AGC_CONTROL) & 266 if ((REG_READ(ah, AR_PHY_AGC_CONTROL) &
267 AR_PHY_AGC_CONTROL_NF) == 0) 267 AR_PHY_AGC_CONTROL_NF) == 0)
268 break; 268 break;
@@ -278,7 +278,7 @@ void ath9k_hw_loadnf(struct ath_hw *ah, struct ath9k_channel *chan)
278 * here, the baseband nf cal will just be capped by our present 278 * here, the baseband nf cal will just be capped by our present
279 * noisefloor until the next calibration timer. 279 * noisefloor until the next calibration timer.
280 */ 280 */
281 if (j == 1000) { 281 if (j == 10000) {
282 ath_dbg(common, ATH_DBG_ANY, 282 ath_dbg(common, ATH_DBG_ANY,
283 "Timeout while waiting for nf to load: AR_PHY_AGC_CONTROL=0x%x\n", 283 "Timeout while waiting for nf to load: AR_PHY_AGC_CONTROL=0x%x\n",
284 REG_READ(ah, AR_PHY_AGC_CONTROL)); 284 REG_READ(ah, AR_PHY_AGC_CONTROL));