]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Allow wpa_cli DPP_CONFIGURATOR_ADD without arguments
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 4 Jul 2017 12:38:52 +0000 (15:38 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 4 Jul 2017 12:38:52 +0000 (15:38 +0300)
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>
wpa_supplicant/wpa_cli.c

index bb1de3ac4b459b71cf9c571dfb028e0fe210d448..7ec2377957996725e971cdca231ff8b3fbeadf41 100644 (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);
 }