Diff between 22503e30d395e7fd440f9b5afc3351ac029042cb and 7b168fc40b96a7f18bf8f7d61ea07ab516e148cb

Changed Files

File Additions Deletions Status
monitor/bt.h +2 -2 modified
monitor/packet.c +15 -1 modified

Full Patch

diff --git a/monitor/bt.h b/monitor/bt.h
index 434653e..631d066 100644
--- a/monitor/bt.h
+++ b/monitor/bt.h
@@ -2394,8 +2394,8 @@ struct bt_hci_evt_le_long_term_key_request {
 	uint16_t ediv;
 } __attribute__ ((packed));
 
-#define BT_HCI_EVT_LE_REMOTE_CONN_PARAM_REQUEST	0x06
-struct bt_hci_evt_le_remote_conn_param_request {
+#define BT_HCI_EVT_LE_CONN_PARAM_REQUEST	0x06
+struct bt_hci_evt_le_conn_param_request {
 	uint16_t handle;
 	uint16_t min_interval;
 	uint16_t max_interval;
diff --git a/monitor/packet.c b/monitor/packet.c
index a4f3f8b..a97f93c 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
@@ -7474,6 +7474,19 @@ static void le_long_term_key_request_evt(const void *data, uint8_t size)
 	print_encrypted_diversifier(evt->ediv);
 }
 
+static void le_conn_param_request_evt(const void *data, uint8_t size)
+{
+	const struct bt_hci_evt_le_conn_param_request *evt = data;
+
+	print_handle(evt->handle);
+	print_slot_125("Min connection interval", evt->min_interval);
+	print_slot_125("Max connection interval", evt->max_interval);
+	print_field("Connection latency: 0x%4.4x", le16_to_cpu(evt->latency));
+	print_field("Supervision timeout: %d msec (0x%4.4x)",
+					le16_to_cpu(evt->supv_timeout) * 10,
+					le16_to_cpu(evt->supv_timeout));
+}
+
 struct subevent_data {
 	uint8_t subevent;
 	const char *str;
@@ -7493,7 +7506,8 @@ static const struct subevent_data subevent_table[] = {
 				le_remote_features_complete_evt, 11, true },
 	{ 0x05, "LE Long Term Key Request",
 				le_long_term_key_request_evt, 12, true },
-	{ 0x06, "LE Remote Connection Parameter Request" },
+	{ 0x06, "LE Remote Connection Parameter Request",
+				le_conn_param_request_evt, 10, true },
 	{ }
 };