]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP2: Support QR mutual auth scan-during-auth-exchange (hostapd)
authorJouni Malinen <jouni@codeaurora.org>
Tue, 25 Aug 2020 13:10:41 +0000 (16:10 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 25 Aug 2020 13:11:43 +0000 (16:11 +0300)
Extend DPP authentication session search for the DPP_QR_CODE command to
cover the ongoing exchanges in Controller/Responder. This was previously
done for wpa_supplicant, but not for hostapd, so complete this support
on the hostapd side.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/ap/dpp_hostapd.c

index bf62e63bee7aea7c3a8e02bd190e5ba4f5165fba..15aa82b8591c256ed59ad90f5bf707774bc2a79e 100644 (file)
@@ -66,6 +66,10 @@ int hostapd_dpp_qr_code(struct hostapd_data *hapd, const char *cmd)
                                        wpabuf_len(hapd->dpp_auth->resp_msg));
        }
 
+#ifdef CONFIG_DPP2
+       dpp_controller_new_qr_code(hapd->iface->interfaces->dpp, bi);
+#endif /* CONFIG_DPP2 */
+
        return bi->id;
 }