From: Jouni Malinen Date: Tue, 4 Jul 2017 12:38:52 +0000 (+0300) Subject: DPP: Allow wpa_cli DPP_CONFIGURATOR_ADD without arguments X-Git-Tag: hostap_2_7~1227 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=623f95685d5eacc5a36a2bf14029dfd4da5611d4;p=thirdparty%2Fhostap.git DPP: Allow wpa_cli DPP_CONFIGURATOR_ADD without arguments All the arguments to this command are optional, so do not mandate at least one to be included in wpa_cli. Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c index bb1de3ac4..7ec237795 100644 --- a/wpa_supplicant/wpa_cli.c +++ b/wpa_supplicant/wpa_cli.c @@ -2894,7 +2894,7 @@ static int wpa_cli_cmd_dpp_stop_listen(struct wpa_ctrl *ctrl, int argc, static int wpa_cli_cmd_dpp_configurator_add(struct wpa_ctrl *ctrl, int argc, char *argv[]) { - return wpa_cli_cmd(ctrl, "DPP_CONFIGURATOR_ADD", 1, argc, argv); + return wpa_cli_cmd(ctrl, "DPP_CONFIGURATOR_ADD", 0, argc, argv); }