]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Allow dpp_controller_start without arguments in CLIs
authorJouni Malinen <quic_jouni@quicinc.com>
Wed, 27 Jul 2022 09:33:40 +0000 (12:33 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 27 Jul 2022 09:33:40 +0000 (12:33 +0300)
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 <quic_jouni@quicinc.com>
hostapd/hostapd_cli.c
wpa_supplicant/wpa_cli.c

index 56a7cadcccbdd608d6a591acb020f989d0182593..6376b78bc707d5d0f983ac59fab7d47aa8c07c57 100644 (file)
@@ -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);
 }
 
 
index aa0f70589cfbc4107615c12c91986eb96b360c6b..4b8d9ef1eeccfad630a3d056bf7dfb1ef444ab0e 100644 (file)
@@ -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);
 }