Diff between 19e45ba50d571a6581de60bd9eadc1a754c9e349 and 36a0d1a53a0bcf685c9f7b69e03e738686d42688

Changed Files

File Additions Deletions Status
monitor/bt.h +8 -0 modified
monitor/packet.c +20 -2 modified

Full Patch

diff --git a/monitor/bt.h b/monitor/bt.h
index 7c4cafc..220cb0c 100644
--- a/monitor/bt.h
+++ b/monitor/bt.h
@@ -974,11 +974,19 @@ struct bt_hci_cmd_le_ltk_req_reply {
 	uint16_t handle;
 	uint8_t  ltk[16];
 } __attribute__ ((packed));
+struct bt_hci_cmd_le_ltk_req_reply_rsp {
+	uint8_t  status;
+	uint16_t handle;
+} __attribute__ ((packed));
 
 #define BT_HCI_CMD_LE_LTK_REQ_NEG_REPLY		0x201b
 struct bt_hci_cmd_le_ltk_req_neg_reply {
 	uint16_t handle;
 } __attribute__ ((packed));
+struct bt_hci_cmd_le_ltk_req_neg_reply_rsp {
+	uint8_t  status;
+	uint16_t handle;
+} __attribute__ ((packed));
 
 #define BT_HCI_CMD_LE_READ_SUPPORTED_STATES	0x201c
 struct bt_hci_rsp_le_read_supported_states {
diff --git a/monitor/packet.c b/monitor/packet.c
index f964b92..e5b3987 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
@@ -3725,6 +3725,14 @@ static void le_ltk_req_reply(const void *data, uint8_t size)
 
 }
 
+static void le_ltk_req_reply_rsp(const void *data, uint8_t size)
+{
+	const struct bt_hci_cmd_le_ltk_req_reply_rsp *rsp = data;
+
+	print_status(rsp->status);
+	print_handle(rsp->handle);
+}
+
 static void le_ltk_req_neg_reply(const void *data, uint8_t size)
 {
 	const struct bt_hci_cmd_le_ltk_req_neg_reply *cmd = data;
@@ -3732,6 +3740,14 @@ static void le_ltk_req_neg_reply(const void *data, uint8_t size)
 	print_handle(cmd->handle);
 }
 
+static void le_ltk_req_neg_reply_rsp(const void *data, uint8_t size)
+{
+	const struct bt_hci_cmd_le_ltk_req_neg_reply_rsp *rsp = data;
+
+	print_status(rsp->status);
+	print_handle(rsp->handle);
+}
+
 static void le_read_supported_states_rsp(const void *data, uint8_t size)
 {
 	const struct bt_hci_rsp_le_read_supported_states *rsp = data;
@@ -4238,9 +4254,11 @@ static const struct opcode_data opcode_table[] = {
 	{ 0x2019, 224, "LE Start Encryption",
 				le_start_encrypt, 28, true },
 	{ 0x201a, 225, "LE Long Term Key Request Reply",
-				le_ltk_req_reply, 18, true },
+				le_ltk_req_reply, 18, true,
+				le_ltk_req_reply_rsp, 3, true },
 	{ 0x201b, 226, "LE Long Term Key Request Neg Reply",
-				le_ltk_req_neg_reply, 2, true },
+				le_ltk_req_neg_reply, 2, true,
+				le_ltk_req_neg_reply_rsp, 3, true },
 	{ 0x201c, 227, "LE Read Supported States",
 				null_cmd, 0, true,
 				le_read_supported_states_rsp, 9, true },