Author: adrian
Date: Thu May 26 16:52:37 2011
New Revision: 222314
URL: http://svn.freebsd.org/changeset/base/222314

Log:
  Add some open-loop TX power debugging for AR9287.

Modified:
  head/sys/dev/ath/ath_hal/ar9002/ar9287_olc.c

Modified: head/sys/dev/ath/ath_hal/ar9002/ar9287_olc.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ar9002/ar9287_olc.c        Thu May 26 16:27:00 
2011        (r222313)
+++ head/sys/dev/ath/ath_hal/ar9002/ar9287_olc.c        Thu May 26 16:52:37 
2011        (r222314)
@@ -70,6 +70,9 @@ ar9287olcTemperatureCompensation(struct 
        rddata = OS_REG_READ(ah, AR_PHY_TX_PWRCTRL4);
        currPDADC = MS(rddata, AR_PHY_TX_PWRCTRL_PD_AVG_OUT);
 
+       HALDEBUG(ah, HAL_DEBUG_PERCAL, "%s: initPDADC=%d, currPDADC=%d\n",
+            __func__, AH5416(ah)->initPDADC, currPDADC);
+
        if (AH5416(ah)->initPDADC == 0 || currPDADC == 0) {
                /*
                 * Zero value indicates that no frames have been transmitted
@@ -91,6 +94,8 @@ ar9287olcTemperatureCompensation(struct 
                    AR_PHY_TX_PWRCTRL_OLPC_TEMP_COMP, delta);
                OS_REG_RMW_FIELD(ah, AR_PHY_CH1_TX_PWRCTRL11,
                    AR_PHY_TX_PWRCTRL_OLPC_TEMP_COMP, delta);
+
+               HALDEBUG(ah, HAL_DEBUG_PERCAL, "%s: delta=%d\n", __func__, 
delta);
        }
 }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to