@@ -538,6 +538,16 @@ class HCI_Cmd_LE_Connection_Update(Packet):
538
538
class HCI_Cmd_LE_Create_Connection_Cancel (Packet ):
539
539
name = "LE Create Connection Cancel"
540
540
541
+ class HCI_Cmd_LE_Connection_Update (Packet ):
542
+ name = "LE Connection Update"
543
+ fields_desc = [ XLEShortField ("handle" , 0 ),
544
+ XLEShortField ("min_interval" , 0 ),
545
+ XLEShortField ("max_interval" , 0 ),
546
+ XLEShortField ("latency" , 0 ),
547
+ XLEShortField ("timeout" , 0 ),
548
+ LEShortField ("min_ce" , 0 ),
549
+ LEShortField ("max_ce" , 0xffff ), ]
550
+
541
551
class HCI_Cmd_LE_Read_Buffer_Size (Packet ):
542
552
name = "LE Read Buffer Size"
543
553
@@ -639,6 +649,14 @@ class HCI_LE_Meta_Connection_Complete(Packet):
639
649
LEShortField ("supervision" , 42 ),
640
650
XByteField ("clock_latency" , 5 ), ]
641
651
652
+ class HCI_LE_Meta_Connection_Update_Complete (Packet ):
653
+ name = "Connection Update Complete"
654
+ fields_desc = [ ByteEnumField ("status" , 0 , {0 :"success" }),
655
+ LEShortField ("handle" , 0 ),
656
+ LEShortField ("interval" , 54 ),
657
+ LEShortField ("latency" , 0 ),
658
+ LEShortField ("timeout" , 42 ), ]
659
+
642
660
class HCI_LE_Meta_Advertising_Report (Packet ):
643
661
name = "Advertising Report"
644
662
fields_desc = [ ByteField ("number" , 0 ),
@@ -693,10 +711,12 @@ class HCI_LE_Meta_Long_Term_Key_Request(Packet):
693
711
bind_layers ( HCI_Event_Hdr , HCI_Event_Command_Status , code = 0xf )
694
712
bind_layers ( HCI_Event_Hdr , HCI_Event_Number_Of_Completed_Packets , code = 0x13 )
695
713
bind_layers ( HCI_Event_Hdr , HCI_Event_LE_Meta , code = 0x3e )
714
+
696
715
bind_layers ( HCI_Event_Command_Complete , HCI_Cmd_Complete_Read_BD_Addr , opcode = 0x1009 )
697
716
698
717
bind_layers ( HCI_Event_LE_Meta , HCI_LE_Meta_Connection_Complete , event = 1 )
699
718
bind_layers ( HCI_Event_LE_Meta , HCI_LE_Meta_Advertising_Report , event = 2 )
719
+ bind_layers ( HCI_Event_LE_Meta , HCI_LE_Meta_Connection_Update_Complete , event = 3 )
700
720
bind_layers ( HCI_Event_LE_Meta , HCI_LE_Meta_Long_Term_Key_Request , event = 5 )
701
721
702
722
bind_layers (EIR_Hdr , EIR_Flags , type = 0x01 )
0 commit comments