aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-07-02 09:36:33 (GMT)
committerJouni Malinen <j@w1.fi>2017-07-03 10:03:34 (GMT)
commitb65b22d60ac9d013f8767f79fd6d5e65c0f6cb96 (patch)
treebb149dd1af44cb9a0dd42f72405661a93dd06919 /wpa_supplicant/ctrl_iface.c
parent31f03cb00988c974b1bfea19295a8f4746face93 (diff)
downloadhostap-b65b22d60ac9d013f8767f79fd6d5e65c0f6cb96.zip
hostap-b65b22d60ac9d013f8767f79fd6d5e65c0f6cb96.tar.gz
hostap-b65b22d60ac9d013f8767f79fd6d5e65c0f6cb96.tar.bz2
DPP: Configurator parameters in responder role
This allows wpa_supplicant to be configured to act as the configurator in the case where a peer device initiates DPP Authentication. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/ctrl_iface.c')
-rw-r--r--wpa_supplicant/ctrl_iface.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index dba7c58..bb9f26e 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -577,6 +577,11 @@ static int wpa_supplicant_ctrl_iface_set(struct wpa_supplicant *wpa_s,
ret = set_disallow_aps(wpa_s, value);
} else if (os_strcasecmp(cmd, "no_keep_alive") == 0) {
wpa_s->no_keep_alive = !!atoi(value);
+#ifdef CONFIG_DPP
+ } else if (os_strcasecmp(cmd, "dpp_configurator_params") == 0) {
+ os_free(wpa_s->dpp_configurator_params);
+ wpa_s->dpp_configurator_params = os_strdup(value);
+#endif /* CONFIG_DPP */
#ifdef CONFIG_TESTING_OPTIONS
} else if (os_strcasecmp(cmd, "ext_mgmt_frame_handling") == 0) {
wpa_s->ext_mgmt_frame_handling = !!atoi(value);