]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Remove argument requirement for DPP push button command
authorAndrew Pope <andrew.pope@morsemicro.com>
Wed, 19 Apr 2023 03:12:30 +0000 (13:12 +1000)
committerJouni Malinen <j@w1.fi>
Fri, 28 Apr 2023 14:55:38 +0000 (17:55 +0300)
The hostapd_cli command to initiate DPP push button mode mandates at
least one argument to be provided. Arguments provided to the command
are used to optionally supply configuration options when running in
this mode. They are not strictly required for DPP push button mode to
start. This patch removes the min requirement check on the command.

Signed-off-by: Andrew Pope (andrew.pope@morsemicro.com)
hostapd/hostapd_cli.c

index 95edea876b5bb9af5473268e03f097c7a7de8793..646dfc598b382402af0989500c296f1d5c7aeb44 100644 (file)
@@ -1529,7 +1529,7 @@ static int hostapd_cli_cmd_dpp_stop_chirp(struct wpa_ctrl *ctrl, int argc,
 static int hostapd_cli_cmd_dpp_push_button(struct wpa_ctrl *ctrl, int argc,
                                           char *argv[])
 {
-       return hostapd_cli_cmd(ctrl, "DPP_PUSH_BUTTON", 1, argc, argv);
+       return hostapd_cli_cmd(ctrl, "DPP_PUSH_BUTTON", 0, argc, argv);
 }
 #endif /* CONFIG_DPP3 */
 #endif /* CONFIG_DPP */