From 3056d0773eac3c1680bf1ecebdce52eaa04920bd Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 19 Jun 2025 04:03:11 +0300 Subject: [PATCH] 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 --- subsys/bluetooth/host/shell/bt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/host/shell/bt.c b/subsys/bluetooth/host/shell/bt.c index e8799ace8e6..020ca610ed4 100644 --- a/subsys/bluetooth/host/shell/bt.c +++ b/subsys/bluetooth/host/shell/bt.c @@ -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;