From 4cfb484e90cb2c4f4dfd04af7ccdf8f1f46294a9 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 27 Jul 2022 12:33:40 +0300 Subject: [PATCH] DPP: Allow dpp_controller_start without arguments in CLIs The DPP_CONTROLLER_START control interface command can be used without any arguments, so do not force at least a single argument to be included in wpa_cli and hostapd_cli. Signed-off-by: Jouni Malinen --- hostapd/hostapd_cli.c | 2 +- wpa_supplicant/wpa_cli.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hostapd/hostapd_cli.c b/hostapd/hostapd_cli.c index 56a7cadcc..6376b78bc 100644 --- a/hostapd/hostapd_cli.c +++ b/hostapd/hostapd_cli.c @@ -1478,7 +1478,7 @@ static int hostapd_cli_cmd_dpp_pkex_remove(struct wpa_ctrl *ctrl, int argc, static int hostapd_cli_cmd_dpp_controller_start(struct wpa_ctrl *ctrl, int argc, char *argv[]) { - return hostapd_cli_cmd(ctrl, "DPP_CONTROLLER_START", 1, argc, argv); + return hostapd_cli_cmd(ctrl, "DPP_CONTROLLER_START", 0, argc, argv); } diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c index aa0f70589..4b8d9ef1e 100644 --- a/wpa_supplicant/wpa_cli.c +++ b/wpa_supplicant/wpa_cli.c @@ -3134,7 +3134,7 @@ static int wpa_cli_cmd_dpp_pkex_remove(struct wpa_ctrl *ctrl, int argc, static int wpa_cli_cmd_dpp_controller_start(struct wpa_ctrl *ctrl, int argc, char *argv[]) { - return wpa_cli_cmd(ctrl, "DPP_CONTROLLER_START", 1, argc, argv); + return wpa_cli_cmd(ctrl, "DPP_CONTROLLER_START", 0, argc, argv); }