Browse Source

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 <johan.hedberg@silabs.com>
pull/89914/merge
Johan Hedberg 3 weeks ago committed by Dan Kalowsky
parent
commit
3056d0773e
  1. 2
      subsys/bluetooth/host/shell/bt.c

2
subsys/bluetooth/host/shell/bt.c

@ -1432,7 +1432,7 @@ static int cmd_hci_cmd(const struct shell *sh, size_t argc, char *argv[]) @@ -1432,7 +1432,7 @@ static int cmd_hci_cmd(const struct shell *sh, size_t argc, char *argv[])
return -ENOEXEC;
}
buf = bt_hci_cmd_create(BT_OP(ogf, ocf), len);
buf = bt_hci_cmd_alloc(K_FOREVER);
if (buf == NULL) {
shell_error(sh, "Unable to allocate HCI buffer");
return -ENOMEM;

Loading…
Cancel
Save