summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-03-06 23:15:24 +0000
committeradrian <adrian@FreeBSD.org>2011-03-06 23:15:24 +0000
commit20bf8c09c585dcc3ad02d8411190978201b55f07 (patch)
tree04c22d3c54c3c55f4b9389c4f6bb58c2847c7b9d /tools
parent337b50efa895f3694fae9eeac35a3abd16181e75 (diff)
downloadFreeBSD-src-20bf8c09c585dcc3ad02d8411190978201b55f07.zip
FreeBSD-src-20bf8c09c585dcc3ad02d8411190978201b55f07.tar.gz
Add support for printing out the open-loop TX power control EEPROM fields.
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c24
1 files changed, 22 insertions, 2 deletions
diff --git a/tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c b/tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
index 91e97b9..6e1b6a5 100644
--- a/tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
+++ b/tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
@@ -218,6 +218,20 @@ eeprom_v14_modal_print(uint16_t *buf, int m)
}
static void
+eeprom_v14_print_caldata_perfreq_op_loop(CAL_DATA_PER_FREQ_OP_LOOP *f)
+{
+ int i, j;
+ for (i = 0; i < 2; i++) {
+ printf(" Gain: %d:\n", i);
+ for (j = 0; j < 5; j++) {
+ printf(" %d: pwrPdg: %d, vpdPdg: %d, pcdac: %d, empty: %d\n",
+ j, f->pwrPdg[i][j], f->vpdPdg[i][j], f->pcdac[i][j], f->empty[i][j]);
+ }
+ printf("\n");
+ }
+}
+
+static void
eeprom_v14_print_caldata_perfreq(CAL_DATA_PER_FREQ *f)
{
int i, j;
@@ -252,7 +266,10 @@ eeprom_v14_calfreqpiers_print(uint16_t *buf)
printf("2Ghz Cal Pier %d\n", i);
for (n = 0; n < AR5416_MAX_CHAINS; n++) {
printf(" Chain %d:\n", n);
- eeprom_v14_print_caldata_perfreq(&eep->ee_base.calPierData2G[n][i]);
+ if (eep->ee_base.baseEepHeader.openLoopPwrCntl)
+ eeprom_v14_print_caldata_perfreq_op_loop((void *) (&eep->ee_base.calPierData2G[n][i]));
+ else
+ eeprom_v14_print_caldata_perfreq(&eep->ee_base.calPierData2G[n][i]);
}
}
@@ -270,7 +287,10 @@ eeprom_v14_calfreqpiers_print(uint16_t *buf)
printf("5Ghz Cal Pier %d\n", i);
for (n = 0; n < AR5416_MAX_CHAINS; n++) {
printf(" Chain %d:\n", n);
- eeprom_v14_print_caldata_perfreq(&eep->ee_base.calPierData5G[n][i]);
+ if (eep->ee_base.baseEepHeader.openLoopPwrCntl)
+ eeprom_v14_print_caldata_perfreq_op_loop((void *) (&eep->ee_base.calPierData2G[n][i]));
+ else
+ eeprom_v14_print_caldata_perfreq(&eep->ee_base.calPierData2G[n][i]);
}
}
}
OpenPOWER on IntegriCloud