Skip to content

Commit fcc5afc

Browse files
olivier-le-sagenordicjm
authored andcommitted
[nrf noup] bluetooth: mesh: replace bt_hci_cmd_create with bt_hci_cmd_alloc
nrf-squash! [nrf noup] Bluetooth: Mesh: zero randomization for friend's adv bt_hci_cmd_create will be deprecated. Signed-off-by: Olivier Lesage <[email protected]>
1 parent 7a77777 commit fcc5afc

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)