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 <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2017-07-04 15:38:52 +03:00 committed by Jouni Malinen
parent 65fa9d96ae
commit 623f95685d

View file

@ -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);
}