From d244ee878ffca0e40933b52a0f02cdc4b25abbd3 Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Tue, 4 Jun 2019 17:06:43 +0200 Subject: [PATCH] Bluetooth: shell: Fix disconnect command argument count Fix disconnect command optional argument count to permit the supply of Bluetooth Address so as to be able to cancel a pending central initiated connection creation. Signed-off-by: Vinayak Kariappa Chettimada --- subsys/bluetooth/shell/bt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/shell/bt.c b/subsys/bluetooth/shell/bt.c index 3917465899a..eabb6f52632 100644 --- a/subsys/bluetooth/shell/bt.c +++ b/subsys/bluetooth/shell/bt.c @@ -1326,7 +1326,7 @@ SHELL_STATIC_SUBCMD_SET_CREATE(bt_cmds, SHELL_CMD_ARG(connect, NULL, HELP_ADDR_LE, cmd_connect_le, 3, 0), SHELL_CMD_ARG(auto-conn, NULL, HELP_ADDR_LE, cmd_auto_conn, 3, 0), #endif /* CONFIG_BT_CENTRAL */ - SHELL_CMD_ARG(disconnect, NULL, HELP_NONE, cmd_disconnect, 1, 0), + SHELL_CMD_ARG(disconnect, NULL, HELP_NONE, cmd_disconnect, 1, 2), SHELL_CMD_ARG(select, NULL, HELP_ADDR_LE, cmd_select, 3, 0), SHELL_CMD_ARG(conn-update, NULL, " ", cmd_conn_update, 5, 0),