diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-01-31 16:35:17 -0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-01-31 16:37:27 -0800 |
commit | c1e12f4da62b9a7728e8bb85392167f284e8dd35 (patch) | |
tree | 0be8a8f15e2e7b9a28bca73209d3008eb40dfdcd /emulator/btdev.c | |
parent | 8c6ff341bb8b06272825695effdab855a7f264ed (diff) | |
download | bluez-c1e12f4da62b9a7728e8bb85392167f284e8dd35.tar.gz |
btdev: Fix response to BT_HCI_CMD_LE_REMOVE_CIG
BT_HCI_CMD_LE_REMOVE_CIG should respond with the CIG ID from the
command instead of always responding with 0x00.
Diffstat (limited to 'emulator/btdev.c')
-rw-r--r-- | emulator/btdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/emulator/btdev.c b/emulator/btdev.c index 902ce86a8..378674010 100644 --- 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; |