We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f28ed0b commit 9121dd6Copy full SHA for 9121dd6
subsys/bluetooth/mesh/adv_ext.c
@@ -158,7 +158,7 @@ static int set_adv_randomness(uint8_t handle, int rand_us)
158
struct net_buf *buf;
159
sdc_hci_cmd_vs_set_adv_randomness_t *cmd_params;
160
161
- buf = bt_hci_cmd_create(SDC_HCI_OPCODE_CMD_VS_SET_ADV_RANDOMNESS, sizeof(*cmd_params));
+ buf = bt_hci_cmd_alloc(K_FOREVER);
162
if (!buf) {
163
LOG_ERR("Could not allocate command buffer");
164
return -ENOMEM;
0 commit comments