From f9f2b28d457a63aba3de85d930513b1a1990732c Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 11 Mar 2022 13:10:33 -0800 Subject: bthost: Fix not setting all parameters when using Create BIG cmd Create BIG shall set proper values for interval, latency, rtn and phy. --- emulator/bthost.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'emulator') 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)); } -- cgit v1.2.1