Skip to content

Commit 16f0bf6

Browse files
thomas-m-johansenrlubos
authored andcommitted
bluetooth: hci: using new vs command for cs event length
The new VS command allows us to set CS event length with the same command as for CS T_PM. This is desireable, as a scalabel command that can have more functionality added to support new features as ther are developed. Signed-off-by: Thomas Johansen <[email protected]>
1 parent 93020e5 commit 16f0bf6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

subsys/bluetooth/controller/hci_driver.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1449,10 +1449,12 @@ static int hci_driver_open(const struct device *dev, bt_hci_recv_t recv_func)
14491449
#endif /* CONFIG_BT_PER_ADV */
14501450

14511451
#if defined(CONFIG_BT_CTLR_CHANNEL_SOUNDING)
1452-
sdc_hci_cmd_vs_set_cs_event_length_t cs_event_length_params = {
1453-
.cs_event_length_us = CONFIG_BT_CTLR_SDC_CS_EVENT_LEN_DEFAULT
1452+
sdc_hci_cmd_vs_cs_params_set_t cs_params_set_event_length = {
1453+
.cs_param_type = SDC_HCI_VS_CS_PARAM_TYPE_CS_EVENT_LENGTH_SET,
1454+
.cs_param_data.cs_event_length_params.cs_event_length_us =
1455+
CONFIG_BT_CTLR_SDC_CS_EVENT_LEN_DEFAULT
14541456
};
1455-
err = sdc_hci_cmd_vs_set_cs_event_length(&cs_event_length_params);
1457+
err = sdc_hci_cmd_vs_cs_params_set(&cs_params_set_event_length);
14561458
if (err) {
14571459
MULTITHREADING_LOCK_RELEASE();
14581460
return -ENOTSUP;

0 commit comments

Comments
 (0)