Skip to content

Commit f4aa29d

Browse files
olivier-le-sagekartben
authored andcommitted
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. Signed-off-by: Olivier Lesage <[email protected]>
1 parent 3051510 commit f4aa29d

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
@@ -618,6 +618,10 @@ int bt_le_cs_start_test(const struct bt_le_cs_test_param *params)
618618

619619
cp->override_parameters_length = override_parameters_length;
620620

621+
struct bt_hci_cmd_hdr *hdr = (struct bt_hci_cmd_hdr *)buf->data;
622+
623+
hdr->param_len += override_parameters_length;
624+
621625
return bt_hci_cmd_send_sync(BT_HCI_OP_LE_CS_TEST, buf, NULL);
622626
}
623627
#endif /* CONFIG_BT_CHANNEL_SOUNDING_TEST */

0 commit comments

Comments
 (0)