aboutsummaryrefslogtreecommitdiff
path: root/parser/csr.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-01-30 22:31:23 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-01-30 22:31:23 +0000
commit2a3e2a140fe9456a3db638420088db0d59c52ef2 (patch)
tree1cbfbb1e9858ad87ec0095b495fe6df3cb579d57 /parser/csr.c
parent8a754293f55e0f653d31048765e40188d53a4429 (diff)
downloadhcidump-2a3e2a140fe9456a3db638420088db0d59c52ef2.tar.gz
Decode the test id from the radio test commands
Diffstat (limited to 'parser/csr.c')
-rw-r--r--parser/csr.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/parser/csr.c b/parser/csr.c
index 8963abb..ba9b072 100644
--- a/parser/csr.c
+++ b/parser/csr.c
@@ -180,6 +180,18 @@ static inline void handle_clock_dump(int level, char *str, struct frame *frm)
printf("%s: handle %d clock 0x%4.4x\n", str, handle, clock);
}
+static inline void radiotest_dump(int level, char *str, struct frame *frm)
+{
+ uint16_t testid;
+
+ testid = CSR_U16(frm);
+
+ p_indent(level, frm);
+ printf("%s: test id %d\n", str, testid);
+
+ raw_dump(level, frm);
+}
+
static inline void psmemtype_dump(int level, char *str, struct frame *frm)
{
uint16_t store, type;
@@ -454,7 +466,7 @@ static inline void bccmd_dump(int level, struct frame *frm)
uint16_dump(level + 1, "MAP_SCO_PCM", frm);
break;
case 0x5004:
- complex_dump(level + 1, "RADIOTEST", frm);
+ radiotest_dump(level + 1, "RADIOTEST", frm);
break;
case 0x500c:
psstores_dump(level + 1, "PS_CLR_STORES", frm);