projects
/
platform
/
upstream
/
bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13d8e48
)
bthost: Fix not setting all parameters when using Create BIG cmd
author
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Fri, 11 Mar 2022 21:10:33 +0000
(13:10 -0800)
committer
Ayush Garg
<ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000
(14:55 +0530)
Create BIG shall set proper values for interval, latency, rtn and phy.
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
emulator/bthost.c
patch
|
blob
|
history
diff --git
a/emulator/bthost.c
b/emulator/bthost.c
index
468c4fb
..
bd8d1d5
100755
(executable)
--- a/
emulator/bthost.c
+++ b/
emulator/bthost.c
@@
-3103,8
+3103,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));
}