From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ v2 2/5] bthost: Add support for terminating a BIG
Date: Fri, 7 Nov 2025 13:54:25 -0500 [thread overview]
Message-ID: <20251107185428.1161318-2-luiz.dentz@gmail.com> (raw)
In-Reply-To: <20251107185428.1161318-1-luiz.dentz@gmail.com>
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This adds support for sending BT_HCI_CMD_LE_TERM_BIG via
bthost_terminate_big.
---
emulator/bthost.c | 11 +++++++++++
emulator/bthost.h | 1 +
2 files changed, 12 insertions(+)
diff --git a/emulator/bthost.c b/emulator/bthost.c
index faabbaa36a4a..9f9538d0dc2c 100644
--- a/emulator/bthost.c
+++ b/emulator/bthost.c
@@ -3780,6 +3780,17 @@ void bthost_create_big(struct bthost *bthost, uint8_t num_bis,
send_command(bthost, BT_HCI_CMD_LE_CREATE_BIG, &cp, sizeof(cp));
}
+void bthost_terminate_big(struct bthost *bthost, uint8_t reason)
+{
+ struct bt_hci_cmd_le_term_big cp;
+
+ memset(&cp, 0, sizeof(cp));
+ cp.handle = 0x01;
+ cp.reason = reason;
+
+ send_command(bthost, BT_HCI_CMD_LE_TERM_BIG, &cp, sizeof(cp));
+}
+
bool bthost_search_ext_adv_addr(struct bthost *bthost, const uint8_t *addr)
{
const struct queue_entry *entry;
diff --git a/emulator/bthost.h b/emulator/bthost.h
index 4061c0be5349..ce6bd820fefe 100644
--- a/emulator/bthost.h
+++ b/emulator/bthost.h
@@ -128,6 +128,7 @@ void bthost_set_pa_enable(struct bthost *bthost, uint8_t enable);
void bthost_past_set_info(struct bthost *bthost, uint16_t handle);
void bthost_create_big(struct bthost *bthost, uint8_t num_bis, uint8_t enc,
const uint8_t *bcode);
+void bthost_terminate_big(struct bthost *bthost, uint8_t reason);
bool bthost_search_ext_adv_addr(struct bthost *bthost, const uint8_t *addr);
void bthost_set_cig_params(struct bthost *bthost, uint8_t cig_id,
--
2.51.1
next prev parent reply other threads:[~2025-11-07 18:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-07 18:54 [PATCH BlueZ v2 1/5] emulator: Generate PA Sync Lost Luiz Augusto von Dentz
2025-11-07 18:54 ` Luiz Augusto von Dentz [this message]
2025-11-07 18:54 ` [PATCH BlueZ v2 3/5] iso-tester: Add tests for checking proper handling of " Luiz Augusto von Dentz
2025-11-07 18:54 ` [PATCH BlueZ v2 4/5] bass: Fix not cleaning up delegator properly Luiz Augusto von Dentz
2025-11-07 18:54 ` [PATCH BlueZ v2 5/5] btio: Fix endless loop if accept return -EBADFD Luiz Augusto von Dentz
2025-11-07 20:16 ` [BlueZ,v2,1/5] emulator: Generate PA Sync Lost 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=20251107185428.1161318-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox