aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-11-13 10:12:08 (GMT)
committerJouni Malinen <j@w1.fi>2017-11-13 10:35:26 (GMT)
commitc1d377396738839c005d4027173e609f7b7756fa (patch)
tree9b61e0d40786dc103ca95dfecfc5daead1ee9093 /wpa_supplicant/ctrl_iface.c
parent51fbcad4575d5fa82652e1330a3f44048e7beec1 (diff)
downloadhostap-c1d377396738839c005d4027173e609f7b7756fa.zip
hostap-c1d377396738839c005d4027173e609f7b7756fa.tar.gz
hostap-c1d377396738839c005d4027173e609f7b7756fa.tar.bz2
DPP: Stop authentication exchange of DPP_STOP_LISTEN
Previously, this command stopped listen operation immediately, but if there was an ongoing authentication exchange, a new listen operation was started. This is not really expected behavior, so stop the authentication exchange first with this command to avoid restarting listen operation. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/ctrl_iface.c')
-rw-r--r--wpa_supplicant/ctrl_iface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 296423a..c2c4235 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -10498,6 +10498,7 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s,
if (wpas_dpp_listen(wpa_s, buf + 11) < 0)
reply_len = -1;
} else if (os_strcmp(buf, "DPP_STOP_LISTEN") == 0) {
+ wpas_dpp_stop(wpa_s);
wpas_dpp_listen_stop(wpa_s);
} else if (os_strncmp(buf, "DPP_CONFIGURATOR_ADD", 20) == 0) {
int res;