Skip to content

Commit 9121dd6

Browse files
[nrf noup] bluetooth: mesh: replace bt_hci_cmd_create with bt_hci_cmd_alloc
bt_hci_cmd_create will be deprecated. Signed-off-by: Olivier Lesage <[email protected]>
1 parent f28ed0b commit 9121dd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/mesh/adv_ext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ static int set_adv_randomness(uint8_t handle, int rand_us)
158158
struct net_buf *buf;
159159
sdc_hci_cmd_vs_set_adv_randomness_t *cmd_params;
160160

161-
buf = bt_hci_cmd_create(SDC_HCI_OPCODE_CMD_VS_SET_ADV_RANDOMNESS, sizeof(*cmd_params));
161+
buf = bt_hci_cmd_alloc(K_FOREVER);
162162
if (!buf) {
163163
LOG_ERR("Could not allocate command buffer");
164164
return -ENOMEM;

0 commit comments

Comments
 (0)