Skip to content

Commit 77f865b

Browse files
olivier-le-sagecarlescufi
authored andcommitted
[nrf fromlist] bluetooth: host: Fix param_len for LE CS Test command
The parameter length for this command was missing the additional length from the arrayed parameters. Upstream PR #: 89092 Signed-off-by: Olivier Lesage <[email protected]> (cherry picked from commit 59d05a4)
1 parent c21e2c4 commit 77f865b

File tree

1 file changed

+4
-0
lines changed
  • subsys/bluetooth/host

1 file changed

+4
-0
lines changed

subsys/bluetooth/host/cs.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,10 @@ int bt_le_cs_start_test(const struct bt_le_cs_test_param *params)
606606

607607
cp->override_parameters_length = override_parameters_length;
608608

609+
struct bt_hci_cmd_hdr *hdr = (struct bt_hci_cmd_hdr *)buf->data;
610+
611+
hdr->param_len += override_parameters_length;
612+
609613
return bt_hci_cmd_send_sync(BT_HCI_OP_LE_CS_TEST, buf, NULL);
610614
}
611615
#endif /* CONFIG_BT_CHANNEL_SOUNDING_TEST */

0 commit comments

Comments
 (0)