aboutsummaryrefslogtreecommitdiffstats
path: root/src/bs11_config.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-04-29 22:33:02 +0000
committerHarald Welte <laforge@gnumonks.org>2009-04-29 22:33:02 +0000
commita7cfa03cb2a987696f40921b1f9667b862f44fb5 (patch)
tree76b39dbfc3ae73331661973e40f2e6f061488b80 /src/bs11_config.c
parentc50ea848049034fba14e68d31868b527c85e4c28 (diff)
bs11_config: print PLL 'work' and 'set' values during query
Diffstat (limited to 'src/bs11_config.c')
-rw-r--r--src/bs11_config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bs11_config.c b/src/bs11_config.c
index 7f2406c23..2a25b6051 100644
--- a/src/bs11_config.c
+++ b/src/bs11_config.c
@@ -397,6 +397,12 @@ static int print_attr(struct tlv_parsed *tp)
printf("\tPLL Mode: %s\n",
pll_mode_name(*TLVP_VAL(tp, NM_ATT_BS11_PLL_MODE)));
}
+ if (TLVP_PRESENT(tp, NM_ATT_BS11_PLL) &&
+ TLVP_LEN(tp, NM_ATT_BS11_PLL) >= 4) {
+ const u_int8_t *vp = TLVP_VAL(tp, NM_ATT_BS11_PLL);
+ printf("\tPLL Set Value=%d, Work Value=%d\n",
+ vp[0] << 8 | vp[1], vp[2] << 8 | vp[3]);
+ }
return 0;