summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pope <andrew.pope@morsemicro.com>2023-04-19 13:12:30 +1000
committerJouni Malinen <j@w1.fi>2023-04-28 17:55:38 +0300
commit9122b60ffdd5d2201d9aba91ae68d1676bc77206 (patch)
tree3aa5ca3057f532dcac331fcacf010da683ebb6ea
parent397d432f60cbc87682d088b61fe4530ca4d96ba9 (diff)
downloadhostap-9122b60ffdd5d2201d9aba91ae68d1676bc77206.tar.gz
DPP: Remove argument requirement for DPP push button command
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)
-rw-r--r--hostapd/hostapd_cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hostapd/hostapd_cli.c b/hostapd/hostapd_cli.c
index 95edea876..646dfc598 100644
--- a/hostapd/hostapd_cli.c
+++ b/hostapd/hostapd_cli.c
@@ -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 */