summaryrefslogtreecommitdiff
path: root/emulator
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-03-04 17:22:29 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-03-07 17:21:57 -0800
commit554fcb7d89a554933bedeeb1b9a616da91b7cc75 (patch)
tree39b7bb7c7b7248a77b2b7a1fd76f9eb3cecae705 /emulator
parentf040ba43d18dfdeae8a470ccfb959a1f6e226788 (diff)
downloadbluez-554fcb7d89a554933bedeeb1b9a616da91b7cc75.tar.gz
bthost: Add support for Create BIG
This adds bthost_create_big
Diffstat (limited to 'emulator')
-rw-r--r--emulator/bthost.c13
-rw-r--r--emulator/bthost.h1
2 files changed, 14 insertions, 0 deletions
diff --git a/emulator/bthost.c b/emulator/bthost.c
index a45a67d14..f629f2e6e 100644
--- a/emulator/bthost.c
+++ b/emulator/bthost.c
@@ -3096,6 +3096,19 @@ void bthost_set_pa_enable(struct bthost *bthost, uint8_t enable)
send_command(bthost, BT_HCI_CMD_LE_SET_PA_ENABLE, &cp, sizeof(cp));
}
+void bthost_create_big(struct bthost *bthost, uint8_t num_bis)
+{
+ struct bt_hci_cmd_le_create_big cp;
+
+ memset(&cp, 0, sizeof(cp));
+ cp.handle = 0x01;
+ cp.adv_handle = 0x01;
+ cp.num_bis = num_bis;
+ cp.bis.sdu = 40;
+ cp.bis.phy = 0x01;
+ send_command(bthost, BT_HCI_CMD_LE_CREATE_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 fb7b1431e..ae5678009 100644
--- a/emulator/bthost.h
+++ b/emulator/bthost.h
@@ -97,6 +97,7 @@ void bthost_set_ext_adv_params(struct bthost *bthost);
void bthost_set_ext_adv_enable(struct bthost *bthost, uint8_t enable);
void bthost_set_pa_params(struct bthost *bthost);
void bthost_set_pa_enable(struct bthost *bthost, uint8_t enable);
+void bthost_create_big(struct bthost *bthost, uint8_t num_bis);
bool bthost_search_ext_adv_addr(struct bthost *bthost, const uint8_t *addr);
void bthost_set_scan_params(struct bthost *bthost, uint8_t scan_type,