public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/2] btdev: fix CIG ID on Set CIG Parameters error response
@ 2023-08-05 12:29 Pauli Virtanen
  2023-08-05 12:29 ` [PATCH BlueZ 2/2] iso-tester: test busy CIG error does not drop existing connections Pauli Virtanen
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Pauli Virtanen @ 2023-08-05 12:29 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Pauli Virtanen

Set CIG Parameters shall return correct CIG ID in Command_Complete also
when it errors.
---
 emulator/btdev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/emulator/btdev.c b/emulator/btdev.c
index 38dcb189e..58414bd74 100644
--- a/emulator/btdev.c
+++ b/emulator/btdev.c
@@ -5872,6 +5872,8 @@ static int cmd_set_cig_params(struct btdev *dev, const void *data,
 
 	memset(&rsp, 0, sizeof(rsp));
 
+	rsp.params.cig_id = cmd->cig_id;
+
 	if (cmd->num_cis > ARRAY_SIZE(dev->le_cig[0].cis)) {
 		rsp.params.status = BT_HCI_ERR_MEM_CAPACITY_EXCEEDED;
 		goto done;
@@ -5942,7 +5944,6 @@ static int cmd_set_cig_params(struct btdev *dev, const void *data,
 	}
 
 	rsp.params.status = BT_HCI_ERR_SUCCESS;
-	rsp.params.cig_id = cmd->cig_id;
 
 	for (i = 0; i < cmd->num_cis; i++) {
 		rsp.params.num_handles++;
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-08-08 22:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-05 12:29 [PATCH BlueZ 1/2] btdev: fix CIG ID on Set CIG Parameters error response Pauli Virtanen
2023-08-05 12:29 ` [PATCH BlueZ 2/2] iso-tester: test busy CIG error does not drop existing connections Pauli Virtanen
2023-08-05 14:00 ` [BlueZ,1/2] btdev: fix CIG ID on Set CIG Parameters error response bluez.test.bot
2023-08-08 22:00 ` [PATCH BlueZ 1/2] " patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox