linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ 08/22] monitor: Fix decoding of CIS estabilished event
Date: Tue,  7 Jan 2020 16:33:28 -0800	[thread overview]
Message-ID: <20200108003342.15458-9-luiz.dentz@gmail.com> (raw)
In-Reply-To: <20200108003342.15458-1-luiz.dentz@gmail.com>

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

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


  parent reply	other threads:[~2020-01-08  0:33 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-08  0:33 [PATCH BlueZ 00/22] Userspace Bluetooth 5.2 initial support Luiz Augusto von Dentz
2020-01-08  0:33 ` [PATCH BlueZ 01/22] monitor: Add support for decoding ISO related commands Luiz Augusto von Dentz
2020-01-08  0:33 ` [PATCH BlueZ 02/22] monitor: Add decoding of ISO related Link Layer PDUs Luiz Augusto von Dentz
2020-01-08  0:33 ` [PATCH BlueZ 03/22] lib: Add definitions for ISO socket Luiz Augusto von Dentz
2020-01-08  0:33 ` [PATCH BlueZ 04/22] tools: Add isotest tool Luiz Augusto von Dentz
2020-01-08  0:33 ` [PATCH BlueZ 05/22] emulator: Add initial support for BT 5.2 Luiz Augusto von Dentz
2020-01-08  0:33 ` [PATCH BlueZ 06/22] monitor: Add support for ISO packets Luiz Augusto von Dentz
2020-01-08  0:33 ` [PATCH BlueZ 07/22] tools/btproxy: " Luiz Augusto von Dentz
2020-01-08  0:33 ` Luiz Augusto von Dentz [this message]
2020-01-08  0:33 ` [PATCH BlueZ 09/22] emulator/btdev: Add parameter to CIS Estabilished Luiz Augusto von Dentz
2020-01-08  0:33 ` [PATCH BlueZ 10/22] lib: Add definitions for Enhanced Credits Based Mode Luiz Augusto von Dentz
2020-01-08  0:33 ` [PATCH BlueZ 11/22] btio: Add mode to for Enhanced Credit Mode Luiz Augusto von Dentz
2020-01-08  0:33 ` [PATCH BlueZ 12/22] monitor: Add decoding for L2CAP Enhanced Credit Based PDUs Luiz Augusto von Dentz
2020-01-08  0:33 ` [PATCH BlueZ 13/22] l2test: Add support for L2CAP_ECRED_MODE Luiz Augusto von Dentz
2020-01-08  0:33 ` [PATCH BlueZ 14/22] share/att: Add EATT support Luiz Augusto von Dentz
2020-01-08  0:33 ` [PATCH BlueZ 15/22] shared/gatt-client: Add support for EATT features Luiz Augusto von Dentz
2020-01-08  0:33 ` [PATCH BlueZ 16/22] gatt: Enable EATT bearer support Luiz Augusto von Dentz
2020-01-08  0:33 ` [PATCH BlueZ 17/22] shared/gatt-server: Add support for Read Multiple Variable Length Luiz Augusto von Dentz
2020-01-08  0:33 ` [PATCH BlueZ 18/22] shared/gatt-client: " Luiz Augusto von Dentz
2020-01-08  0:33 ` [PATCH BlueZ 19/22] shared/gatt: Add support for Handle Value Multiple Notifications Luiz Augusto von Dentz
2020-01-08  0:33 ` [PATCH BlueZ 20/22] gatt: Add support for Notify Multiple Luiz Augusto von Dentz
2020-01-08  0:33 ` [PATCH BlueZ 21/22] core: Add support for setting the number of GATT bearers Luiz Augusto von Dentz
2020-01-08  0:33 ` [PATCH BlueZ 22/22] monitor: Add support for decoding EATT Luiz Augusto von Dentz
2020-01-16 11:54 ` [PATCH BlueZ 00/22] Userspace Bluetooth 5.2 initial support Grzegorz Kołodziejczyk
2020-01-16 19:51   ` Luiz Augusto von Dentz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200108003342.15458-9-luiz.dentz@gmail.com \
    --to=luiz.dentz@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).