diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 5af259644bf6..c070e01c8de3 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -310,13 +310,13 @@ void ath_paprd_calibrate(struct work_struct *work) | |||
310 | break; | 310 | break; |
311 | 311 | ||
312 | time_left = wait_for_completion_timeout(&sc->paprd_complete, | 312 | time_left = wait_for_completion_timeout(&sc->paprd_complete, |
313 | 100); | 313 | msecs_to_jiffies(ATH_PAPRD_TIMEOUT)); |
314 | if (!time_left) { | 314 | if (!time_left) { |
315 | ath_print(ath9k_hw_common(ah), ATH_DBG_CALIBRATE, | 315 | ath_print(ath9k_hw_common(ah), ATH_DBG_CALIBRATE, |
316 | "Timeout waiting for paprd training on " | 316 | "Timeout waiting for paprd training on " |
317 | "TX chain %d\n", | 317 | "TX chain %d\n", |
318 | chain); | 318 | chain); |
319 | break; | 319 | goto fail_paprd; |
320 | } | 320 | } |
321 | 321 | ||
322 | if (!ar9003_paprd_is_done(ah)) | 322 | if (!ar9003_paprd_is_done(ah)) |
@@ -334,6 +334,7 @@ void ath_paprd_calibrate(struct work_struct *work) | |||
334 | ath_paprd_activate(sc); | 334 | ath_paprd_activate(sc); |
335 | } | 335 | } |
336 | 336 | ||
337 | fail_paprd: | ||
337 | ath9k_ps_restore(sc); | 338 | ath9k_ps_restore(sc); |
338 | } | 339 | } |
339 | 340 | ||