aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohammed Shafi Shajakhan <mshajakhan@atheros.com>2011-06-15 08:55:31 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-06-17 14:22:23 -0400
commitd4bb17c4bed70892ea8b749a843a516424ba5638 (patch)
tree63b779d6a2b35cfd4b32f4aa0c5915ecb5dea7ee
parentaec7ffdf4ff24df1fe85ed5bc9e050c4dd77617b (diff)
ath9k: Add debug messages to track PAPRD failures
Add few debug messages for some of the possible scenarios where we can detect PAPRD failures. this will help us to be sure that we had really enabled PAPRD Cc: susinder@qca.qualcomm.com Cc: senthilb@qca.qualcomm.com Signed-off-by: Mohammed Shafi Shajakhan <mshajakhan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index 7f945333e2d..e0e0e86578b 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -360,7 +360,7 @@ static bool ath_paprd_send_frame(struct ath_softc *sc, struct sk_buff *skb, int
360 txctl.paprd = BIT(chain); 360 txctl.paprd = BIT(chain);
361 361
362 if (ath_tx_start(hw, skb, &txctl) != 0) { 362 if (ath_tx_start(hw, skb, &txctl) != 0) {
363 ath_dbg(common, ATH_DBG_XMIT, "PAPRD TX failed\n"); 363 ath_dbg(common, ATH_DBG_CALIBRATE, "PAPRD TX failed\n");
364 dev_kfree_skb_any(skb); 364 dev_kfree_skb_any(skb);
365 return false; 365 return false;
366 } 366 }
@@ -369,7 +369,7 @@ static bool ath_paprd_send_frame(struct ath_softc *sc, struct sk_buff *skb, int
369 msecs_to_jiffies(ATH_PAPRD_TIMEOUT)); 369 msecs_to_jiffies(ATH_PAPRD_TIMEOUT));
370 370
371 if (!time_left) 371 if (!time_left)
372 ath_dbg(ath9k_hw_common(sc->sc_ah), ATH_DBG_CALIBRATE, 372 ath_dbg(common, ATH_DBG_CALIBRATE,
373 "Timeout waiting for paprd training on TX chain %d\n", 373 "Timeout waiting for paprd training on TX chain %d\n",
374 chain); 374 chain);
375 375
@@ -431,11 +431,18 @@ void ath_paprd_calibrate(struct work_struct *work)
431 if (!ath_paprd_send_frame(sc, skb, chain)) 431 if (!ath_paprd_send_frame(sc, skb, chain))
432 goto fail_paprd; 432 goto fail_paprd;
433 433
434 if (!ar9003_paprd_is_done(ah)) 434 if (!ar9003_paprd_is_done(ah)) {
435 ath_dbg(common, ATH_DBG_CALIBRATE,
436 "PAPRD not yet done on chain %d\n", chain);
435 break; 437 break;
438 }
436 439
437 if (ar9003_paprd_create_curve(ah, caldata, chain) != 0) 440 if (ar9003_paprd_create_curve(ah, caldata, chain)) {
441 ath_dbg(common, ATH_DBG_CALIBRATE,
442 "PAPRD create curve failed on chain %d\n",
443 chain);
438 break; 444 break;
445 }
439 446
440 chain_ok = 1; 447 chain_ok = 1;
441 } 448 }