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:
477eed3
)
btdev: Fix response to BT_HCI_CMD_LE_REMOVE_CIG
author
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Tue, 1 Feb 2022 00:35:17 +0000
(16:35 -0800)
committer
Ayush Garg
<ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:53 +0000
(14:55 +0530)
BT_HCI_CMD_LE_REMOVE_CIG should respond with the CIG ID from the
command instead of always responding with 0x00.
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
emulator/btdev.c
patch
|
blob
|
history
diff --git
a/emulator/btdev.c
b/emulator/btdev.c
index
902ce86
..
3786740
100755
(executable)
--- a/
emulator/btdev.c
+++ b/
emulator/btdev.c
@@
-5630,13
+5630,14
@@
static int cmd_create_cis_complete(struct btdev *dev, const void *data,
static int cmd_remove_cig(struct btdev *dev, const void *data, uint8_t len)
{
+ const struct bt_hci_cmd_le_remove_cig *cmd = data;
struct bt_hci_rsp_le_remove_cig rsp;
memset(&dev->le_cig, 0, sizeof(dev->le_cig));
memset(&rsp, 0, sizeof(rsp));
rsp.status = BT_HCI_ERR_SUCCESS;
- rsp.cig_id =
0x00
;
+ rsp.cig_id =
cmd->cig_id
;
cmd_complete(dev, BT_HCI_CMD_LE_REMOVE_CIG, &rsp, sizeof(rsp));
return 0;