Skip to content

Commit 5d6edb7

Browse files
committed
[nrf-noup] bluetooth: host: cs: Fix bt_le_cs_start_test param_len update
There was a change in HCI fuffers encoding: #88710. First byte in the HCI buf->data[0] is HCI type. The header starts from buf->data[1]. Current implementation was overwriting the opcode field in the buffer when updating the hdr->param_len. Signed-off-by: Piotr Pryga <[email protected]>
1 parent 39150f2 commit 5d6edb7

File tree

1 file changed

+1
-1
lines changed
  • subsys/bluetooth/host

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/cs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ int bt_le_cs_start_test(const struct bt_le_cs_test_param *params)
617617

618618
cp->override_parameters_length = override_parameters_length;
619619

620-
struct bt_hci_cmd_hdr *hdr = (struct bt_hci_cmd_hdr *)buf->data;
620+
struct bt_hci_cmd_hdr *hdr = (struct bt_hci_cmd_hdr *)&buf->data[1];
621621

622622
hdr->param_len += override_parameters_length;
623623

0 commit comments

Comments
 (0)