Skip to content

Commit 3056d07

Browse files
jhedbergdkalowsk
authored andcommitted
Bluetooth: Host: shell: Use bt_hci_cmd_alloc()
Use bt_hci_cmd_alloc() instead of the soon to be deprecated bt_hci_cmd_create(). Signed-off-by: Johan Hedberg <[email protected]>
1 parent 8962129 commit 3056d07

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/shell/bt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,7 @@ static int cmd_hci_cmd(const struct shell *sh, size_t argc, char *argv[])
14321432
return -ENOEXEC;
14331433
}
14341434

1435-
buf = bt_hci_cmd_create(BT_OP(ogf, ocf), len);
1435+
buf = bt_hci_cmd_alloc(K_FOREVER);
14361436
if (buf == NULL) {
14371437
shell_error(sh, "Unable to allocate HCI buffer");
14381438
return -ENOMEM;

0 commit comments

Comments
 (0)