mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Add support for printing out the open-loop TX power control EEPROM fields.
This commit is contained in:
parent
8cd3d45ad9
commit
799caf55bb
1 changed files with 22 additions and 2 deletions
|
|
@ -217,6 +217,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)
|
||||
{
|
||||
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue