From 7aca4f96009214377cc1d9cfba55a39fd8279e49 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 4 Mar 2004 20:15:08 +0000 Subject: [PATCH] hcidump: Decode credit based flow control information --- tools/parser/rfcomm.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/parser/rfcomm.c b/tools/parser/rfcomm.c index 97710a20e..287081c6b 100644 --- a/tools/parser/rfcomm.c +++ b/tools/parser/rfcomm.c @@ -253,7 +253,12 @@ static inline void uih_frame(int level, struct frame *frm, long_frame_head *head p_indent(level, frm); printf("RFCOMM(d): UIH: "); print_rfcomm_hdr(head, frm->ptr, frm->len); - printf("\n"); + if (GET_PF(head->control)) { + printf("credits %d\n", *(uint8_t *)(frm->ptr)); + frm->ptr++; + frm->len--; + } else + printf("\n"); frm->len--; raw_dump(level, frm); -- 2.47.3