2010-02-10 01:07:29

by Nick Pelly

[permalink] [raw]
Subject: [PATCH] Print pkt_type when decoding Setup Synchronous Connection command.

diff --git a/parser/hci.c b/parser/hci.c
index c0ca27e..958cd38 100644
--- a/parser/hci.c
+++ b/parser/hci.c
@@ -917,8 +917,9 @@ static inline void setup_sync_conn_dump(int level, struct frame *frm)
setup_sync_conn_cp *cp = frm->ptr;

p_indent(level, frm);
- printf("handle %d voice setting 0x%4.4x\n", btohs(cp->handle),
- btohs(cp->voice_setting));
+ printf("handle %d voice setting 0x%4.4x pkt_type 0x%4.4x\n",
+ btohs(cp->handle), btohs(cp->voice_setting),
+ btohs(cp->pkt_type));
}

static inline void hold_mode_dump(int level, struct frame *frm)
--
1.6.5.3



2010-03-24 21:03:47

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [PATCH] Print pkt_type when decoding Setup Synchronous Connection command.

Hi Nick,

> diff --git a/parser/hci.c b/parser/hci.c
> index c0ca27e..958cd38 100644
> --- a/parser/hci.c
> +++ b/parser/hci.c
> @@ -917,8 +917,9 @@ static inline void setup_sync_conn_dump(int level, struct frame *frm)
> setup_sync_conn_cp *cp = frm->ptr;
>
> p_indent(level, frm);
> - printf("handle %d voice setting 0x%4.4x\n", btohs(cp->handle),
> - btohs(cp->voice_setting));
> + printf("handle %d voice setting 0x%4.4x pkt_type 0x%4.4x\n",
> + btohs(cp->handle), btohs(cp->voice_setting),
> + btohs(cp->pkt_type));
> }

I renamed it to ptype instead of pkt_type to be consistent, but
otherwise, patch has been applied. Thanks.

Regards

Marcel