@@ -919,6 +919,12 @@ class SM_Signing_Information(Packet):
919
919
fields_desc = [StrFixedLenField ("csrk" , b'\x00 ' * 16 , 16 ), ]
920
920
921
921
922
+ class SM_Security_Request (Packet ):
923
+ name = "Security Request"
924
+ fields_desc = [
925
+ BitField ("auth_req" , 0 , 8 )
926
+ ]
927
+
922
928
class SM_Public_Key (Packet ):
923
929
name = "Public Key"
924
930
fields_desc = [StrFixedLenField ("key_x" , b'\x00 ' * 32 , 32 ),
@@ -2813,16 +2819,17 @@ class HCI_LE_Meta_Extended_Advertising_Reports(Packet):
2813
2819
bind_layers (ATT_Hdr , ATT_Handle_Value_Notification , opcode = 0x1b )
2814
2820
bind_layers (ATT_Hdr , ATT_Handle_Value_Indication , opcode = 0x1d )
2815
2821
bind_layers (L2CAP_Hdr , SM_Hdr , cid = 6 )
2816
- bind_layers (SM_Hdr , SM_Pairing_Request , sm_command = 1 )
2817
- bind_layers (SM_Hdr , SM_Pairing_Response , sm_command = 2 )
2818
- bind_layers (SM_Hdr , SM_Confirm , sm_command = 3 )
2819
- bind_layers (SM_Hdr , SM_Random , sm_command = 4 )
2820
- bind_layers (SM_Hdr , SM_Failed , sm_command = 5 )
2821
- bind_layers (SM_Hdr , SM_Encryption_Information , sm_command = 6 )
2822
- bind_layers (SM_Hdr , SM_Master_Identification , sm_command = 7 )
2823
- bind_layers (SM_Hdr , SM_Identity_Information , sm_command = 8 )
2824
- bind_layers (SM_Hdr , SM_Identity_Address_Information , sm_command = 9 )
2822
+ bind_layers (SM_Hdr , SM_Pairing_Request , sm_command = 0x01 )
2823
+ bind_layers (SM_Hdr , SM_Pairing_Response , sm_command = 0x02 )
2824
+ bind_layers (SM_Hdr , SM_Confirm , sm_command = 0x03 )
2825
+ bind_layers (SM_Hdr , SM_Random , sm_command = 0x04 )
2826
+ bind_layers (SM_Hdr , SM_Failed , sm_command = 0x05 )
2827
+ bind_layers (SM_Hdr , SM_Encryption_Information , sm_command = 0x06 )
2828
+ bind_layers (SM_Hdr , SM_Master_Identification , sm_command = 0x07 )
2829
+ bind_layers (SM_Hdr , SM_Identity_Information , sm_command = 0x08 )
2830
+ bind_layers (SM_Hdr , SM_Identity_Address_Information , sm_command = 0x09 )
2825
2831
bind_layers (SM_Hdr , SM_Signing_Information , sm_command = 0x0a )
2832
+ bind_layers (SM_Hdr , SM_Security_Request , sm_command = 0x0b )
2826
2833
bind_layers (SM_Hdr , SM_Public_Key , sm_command = 0x0c )
2827
2834
bind_layers (SM_Hdr , SM_DHKey_Check , sm_command = 0x0d )
2828
2835
0 commit comments