Skip to content

Commit

Permalink
bthost: Fix not setting all parameters when using Create BIG cmd
Browse files Browse the repository at this point in the history
Create BIG shall set proper values for interval, latency, rtn and phy.
  • Loading branch information
Vudentz committed Apr 15, 2022
1 parent dc1b309 commit f9f2b28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion emulator/bthost.c
Expand Up @@ -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));
}

Expand Down

0 comments on commit f9f2b28

Please sign in to comment.