From 913631b0688fb8d417aa6c8a74bf6a181159076f Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 30 Jan 2006 22:31:23 +0000 Subject: [PATCH] hcidump: Decode the test id from the radio test commands --- tools/parser/csr.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tools/parser/csr.c b/tools/parser/csr.c index 8963abb1e..ba9b072e2 100644 --- a/tools/parser/csr.c +++ b/tools/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); -- 2.47.3