[PATCH BlueZ 08/22] monitor: Fix decoding of CIS estabilished event

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>

The event has been changed in r06.
---
 monitor/bt.h     | 1 +
 monitor/packet.c | 9 +++++----
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/monitor/bt.h b/monitor/bt.h
index b08f145ab..c90338096 100644
--- a/monitor/bt.h
+++ b/monitor/bt.h
@@ -3445,6 +3445,7 @@ struct bt_hci_evt_le_cis_established {
 	uint8_t  s_ft;
 	uint16_t m_mtu;
 	uint16_t s_mtu;
+	uint16_t interval;
 } __attribute__ ((packed));
 
 #define BT_HCI_EVT_LE_CIS_REQ			BT_HCI_SUBEVT_5_2 + 1
diff --git a/monitor/packet.c b/monitor/packet.c
index 0ef8a5b86..377944284 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
@@ -10278,20 +10278,21 @@ static void le_cis_established_evt(const void *data, uint8_t size)
 	const struct bt_hci_evt_le_cis_established *evt = data;
 
 	print_status(evt->status);
-	print_field("Connection Handle: %d", le16_to_cpu(evt->status));
+	print_field("Connection Handle: %d", le16_to_cpu(evt->conn_handle));
 	print_usec_interval("CIG Synchronization Delay", evt->cig_sync_delay);
 	print_usec_interval("CIS Synchronization Delay", evt->cis_sync_delay);
 	print_usec_interval("Master to Slave Latency", evt->m_latency);
 	print_usec_interval("Slave to Master Latency", evt->s_latency);
 	print_le_phy("Master to Slave PHY", evt->m_phy);
-	print_le_phy("Slave to Master PHY", evt->m_phy);
+	print_le_phy("Slave to Master PHY", evt->s_phy);
 	print_field("Number of Subevents: %u", evt->nse);
 	print_field("Master to Slave Burst Number: %u", evt->m_bn);
 	print_field("Slave to Master Burst Number: %u", evt->s_bn);
 	print_field("Master to Slave Flush Timeout: %u", evt->m_ft);
 	print_field("Slave to Master Flush Timeout: %u", evt->s_ft);
-	print_field("Master to Slave MTU: %u", evt->m_ft);
-	print_field("Slave to Master MTU: %u", evt->s_ft);
+	print_field("Master to Slave MTU: %u", le16_to_cpu(evt->m_mtu));
+	print_field("Slave to Master MTU: %u", le16_to_cpu(evt->s_mtu));
+	print_field("ISO Interval: %u", le16_to_cpu(evt->interval));
 }
 
 static void le_req_cis_evt(const void *data, uint8_t size)
-- 
2.21.0




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux