]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP2: CSR wait in Configurator when using TCP
authorJouni Malinen <jouni@codeaurora.org>
Thu, 18 Jun 2020 09:56:51 +0000 (12:56 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 18 Jun 2020 09:56:51 +0000 (12:56 +0300)
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 <jouni@codeaurora.org>
src/common/dpp_tcp.c

index 2cf2516529da253bb57c3e61dd85d3dde2ff995f..6b21b8102f300869806280dd04caa39f2be44a34 100644 (file)
@@ -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");