Skip to contentSkip to conversation

Print pkt_type when decoding Setup Synchronous Connection command.

PATCH In review Nick Pelly 2 participants 2 messages Feb 10, 2010 – Mar 24, 2010 Bluetooth drivers

lore
Share & tools
lore

Nick Pelly

author
#0 lore raw

PATCH 1/1 Print pkt_type when decoding Setup Synchronous Connection command.

parser/hci.c +3 -2
index c0ca27e..958cd38 100644
@@ -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)
Signature · 1 line
1.6.5.3
maintainer
#1 lore raw

Hi Nick,

Quoted 5 lines
parser/hci.c +0 -0
index c0ca27e..958cd38 100644

parser/hci.c static inline void setup_sync_conn_dump(int level, struct frame *frm) · line 923

Quoted 9 lines
parser/hci.c +3 -2
@@ -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