All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ 2/2] monitor: Fix handling of BT_HCI_EVT_LE_BIG_SYNC_ESTABILISHED
Date: Tue, 23 Feb 2021 11:09:04 -0800	[thread overview]
Message-ID: <20210223190904.1718994-2-luiz.dentz@gmail.com> (raw)
In-Reply-To: <20210223190904.1718994-1-luiz.dentz@gmail.com>

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

This adds the missing fields for BT_HCI_EVT_LE_BIG_SYNC_ESTABILISHED
event.
---
 monitor/bt.h     | 6 ++++++
 monitor/packet.c | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/monitor/bt.h b/monitor/bt.h
index 394dd7a2d..a77a2ee60 100644
--- a/monitor/bt.h
+++ b/monitor/bt.h
@@ -3554,6 +3554,12 @@ struct bt_hci_evt_le_big_sync_estabilished {
 	uint8_t  status;
 	uint8_t  big_id;
 	uint8_t  latency[3];
+	uint8_t  nse;
+	uint8_t  bn;
+	uint8_t  pto;
+	uint8_t  irc;
+	uint16_t max_pdu;
+	uint16_t interval;
 	uint8_t  num_bis;
 	uint16_t handle[0];
 } __attribute__ ((packed));
diff --git a/monitor/packet.c b/monitor/packet.c
index 55ba16ccc..c07676253 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
@@ -10600,6 +10600,12 @@ static void le_big_sync_estabilished_evt(const void *data, uint8_t size)
 	print_status(evt->status);
 	print_field("BIG ID: 0x%2.2x", evt->big_id);
 	print_usec_interval("Transport Latency", evt->latency);
+	print_field("NSE: %u", evt->nse);
+	print_field("BN: %u", evt->bn);
+	print_field("PTO: %u", evt->bn);
+	print_field("IRC: %u", evt->irc);
+	print_field("Maximum PDU: %u", evt->max_pdu);
+	print_slot_125("ISO Interval", evt->interval);
 	print_list(evt->handle, size, evt->num_bis, sizeof(*evt->handle),
 						print_bis_handle);
 }
-- 
2.29.2


  reply	other threads:[~2021-02-23 19:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-23 19:09 [PATCH BlueZ 1/2] monitor: Fix handling of BT_HCI_EVT_LE_BIG_COMPLETE Luiz Augusto von Dentz
2021-02-23 19:09 ` Luiz Augusto von Dentz [this message]
2021-02-23 19:37 ` [BlueZ,1/2] " bluez.test.bot
2021-02-23 22:47   ` An, Tedd
2021-02-23 22:56   ` Luiz Augusto von Dentz
2021-02-23 22:59 ` bluez.test.bot

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=20210223190904.1718994-2-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.