]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_cli: Add dpp_bootstrap_set command
authorAndrew Beltrano <anbeltra@microsoft.com>
Mon, 14 Sep 2020 22:42:55 +0000 (22:42 +0000)
committerJouni Malinen <j@w1.fi>
Sun, 11 Oct 2020 16:47:08 +0000 (19:47 +0300)
Expose DPP_BOOTSTRAP_SET through wpa_cli command dpp_bootstrap_set <id>
<configurator params..>

Signed-off-by: Andrew Beltrano <anbeltra@microsoft.com>
wpa_supplicant/wpa_cli.c

index f5b02f662274b4dcdcf000377fe93546c66bdfa7..5c7f5eef331c28487fd283baaf68856308cbe9fe 100644 (file)
@@ -2994,6 +2994,13 @@ static int wpa_cli_cmd_dpp_bootstrap_info(struct wpa_ctrl *ctrl, int argc,
 }
 
 
+static int wpa_cli_cmd_dpp_bootstrap_set(struct wpa_ctrl *ctrl, int argc,
+                                        char *argv[])
+{
+       return wpa_cli_cmd(ctrl, "DPP_BOOTSTRAP_SET", 1, argc, argv);
+}
+
+
 static int wpa_cli_cmd_dpp_auth_init(struct wpa_ctrl *ctrl, int argc,
                                     char *argv[])
 {
@@ -3764,6 +3771,9 @@ static const struct wpa_cli_cmd wpa_cli_commands[] = {
        { "dpp_bootstrap_info", wpa_cli_cmd_dpp_bootstrap_info, NULL,
          cli_cmd_flag_none,
          "<id> = show DPP bootstrap information" },
+       { "dpp_bootstrap_set", wpa_cli_cmd_dpp_bootstrap_set, NULL,
+         cli_cmd_flag_none,
+         "<id> [conf=..] [ssid=<SSID>] [ssid_charset=#] [psk=<PSK>] [pass=<passphrase>] [configurator=<id>] [conn_status=#] [akm_use_selector=<0|1>] [group_id=..] [expiry=#] [csrattrs=..] = set DPP configurator parameters" },
        { "dpp_auth_init", wpa_cli_cmd_dpp_auth_init, NULL, cli_cmd_flag_none,
          "peer=<id> [own=<id>] = initiate DPP bootstrapping" },
        { "dpp_listen", wpa_cli_cmd_dpp_listen, NULL, cli_cmd_flag_none,