diff options
author | sam <sam@FreeBSD.org> | 2009-02-05 20:56:33 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-02-05 20:56:33 +0000 |
commit | 5b2183aa129073bdcb790e27b9d1f1262d6111f9 (patch) | |
tree | 6361a6ed950085c15f9d1131edc50104b765c627 /sys/dev/ath | |
parent | d9b4eedcd5e5cba6068f7d636962f7140b5fa156 (diff) | |
download | FreeBSD-src-5b2183aa129073bdcb790e27b9d1f1262d6111f9.zip FreeBSD-src-5b2183aa129073bdcb790e27b9d1f1262d6111f9.tar.gz |
improve IQ cal debug msgs; in particular don't scare people by screaming
"MISGATED IQ CAL!" when it's not
Diffstat (limited to 'sys/dev/ath')
-rw-r--r-- | sys/dev/ath/ath_hal/ar5212/ar5212_reset.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c b/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c index 936e084..1c29a86 100644 --- a/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c +++ b/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c @@ -994,6 +994,12 @@ ar5212PerCalibrationN(struct ath_hal *ah, AR_PHY_TIMING_CTRL4_DO_IQCAL); } while (++i < IQ_CAL_TRIES); + HALDEBUG(ah, HAL_DEBUG_PERCAL, + "%s: IQ cal finished: %d tries\n", __func__, i); + HALDEBUG(ah, HAL_DEBUG_PERCAL, + "%s: powerMeasI %u powerMeasQ %u iqCorrMeas %d\n", + __func__, powerMeasI, powerMeasQ, iqCorrMeas); + /* * Prescale these values to remove 64-bit operation * requirement at the loss of a little precision. @@ -1020,19 +1026,7 @@ ar5212PerCalibrationN(struct ath_hal *ah, } HALDEBUG(ah, HAL_DEBUG_PERCAL, - "****************** MISGATED IQ CAL! *******************\n"); - HALDEBUG(ah, HAL_DEBUG_PERCAL, - "time = %d, i = %d, \n", OS_GETUPTIME(ah), i); - HALDEBUG(ah, HAL_DEBUG_PERCAL, - "powerMeasI = 0x%08x\n", powerMeasI); - HALDEBUG(ah, HAL_DEBUG_PERCAL, - "powerMeasQ = 0x%08x\n", powerMeasQ); - HALDEBUG(ah, HAL_DEBUG_PERCAL, - "iqCorrMeas = 0x%08x\n", iqCorrMeas); - HALDEBUG(ah, HAL_DEBUG_PERCAL, - "iCoff = %d\n", iCoff); - HALDEBUG(ah, HAL_DEBUG_PERCAL, - "qCoff = %d\n", qCoff); + "%s: iCoff %d qCoff %d\n", __func__, iCoff, qCoff); /* Write values and enable correction */ OS_REG_RMW_FIELD(ah, AR_PHY_TIMING_CTRL4, |