diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/calib.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/calib.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath9k/calib.c b/drivers/net/wireless/ath/ath9k/calib.c index b68a1acbddd0..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)); |
@@ -382,9 +382,8 @@ void ath9k_init_nfcal_hist_buffer(struct ath_hw *ah, | |||
382 | s16 default_nf; | 382 | s16 default_nf; |
383 | int i, j; | 383 | int i, j; |
384 | 384 | ||
385 | if (!ah->caldata) | 385 | ah->caldata->channel = chan->channel; |
386 | return; | 386 | ah->caldata->channelFlags = chan->channelFlags & ~CHANNEL_CW_INT; |
387 | |||
388 | h = ah->caldata->nfCalHist; | 387 | h = ah->caldata->nfCalHist; |
389 | default_nf = ath9k_hw_get_default_nf(ah, chan); | 388 | default_nf = ath9k_hw_get_default_nf(ah, chan); |
390 | for (i = 0; i < NUM_NF_READINGS; i++) { | 389 | for (i = 0; i < NUM_NF_READINGS; i++) { |