From 0f9463d6ee027c915cd775c8b161d71788c04bd4 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 18 Jun 2020 12:56:51 +0300 Subject: [PATCH] DPP2: CSR wait in Configurator when using TCP Make Configurator wait for CSR (i.e., another Config Request) when using DPP over TCP similarly to the over Public Action frame case. Signed-off-by: Jouni Malinen --- src/common/dpp_tcp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common/dpp_tcp.c b/src/common/dpp_tcp.c index 2cf251652..6b21b8102 100644 --- a/src/common/dpp_tcp.c +++ b/src/common/dpp_tcp.c @@ -143,6 +143,12 @@ static void dpp_controller_gas_done(struct dpp_connection *conn) struct dpp_authentication *auth = conn->auth; void *msg_ctx; + if (auth->waiting_csr) { + wpa_printf(MSG_DEBUG, "DPP: Waiting for CSR"); + conn->on_tcp_tx_complete_gas_done = 0; + return; + } + if (auth->peer_version >= 2 && auth->conf_resp_status == DPP_STATUS_OK) { wpa_printf(MSG_DEBUG, "DPP: Wait for Configuration Result");