summaryrefslogtreecommitdiff
path: root/emulator
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-03-11 13:10:33 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-04-14 17:05:22 -0700
commitf9f2b28d457a63aba3de85d930513b1a1990732c (patch)
tree23b6bc43d2af52ad7b1da85f7c70a9a50a5be03b /emulator
parentdc1b309901e5a1af4fdb5dc36c4af87ea9f7fae3 (diff)
downloadbluez-f9f2b28d457a63aba3de85d930513b1a1990732c.tar.gz
bthost: Fix not setting all parameters when using Create BIG cmd
Create BIG shall set proper values for interval, latency, rtn and phy.
Diffstat (limited to 'emulator')
-rw-r--r--emulator/bthost.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/emulator/bthost.c b/emulator/bthost.c
index a7a0b8428..75fa625b1 100644
--- a/emulator/bthost.c
+++ b/emulator/bthost.c
@@ -3104,8 +3104,11 @@ void bthost_create_big(struct bthost *bthost, uint8_t num_bis)
cp.handle = 0x01;
cp.adv_handle = 0x01;
cp.num_bis = num_bis;
+ put_le24(10000, cp.bis.sdu_interval);
cp.bis.sdu = 40;
- cp.bis.phy = 0x01;
+ cp.bis.latency = cpu_to_le16(10);
+ cp.bis.rtn = 0x02;
+ cp.bis.phy = 0x02;
send_command(bthost, BT_HCI_CMD_LE_CREATE_BIG, &cp, sizeof(cp));
}