From: Jouni Malinen Date: Tue, 19 Jul 2022 18:26:17 +0000 (+0300) Subject: DPP: Allow Controller to initiate PKEX through Relay X-Git-Tag: hostap_2_11~1827 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb2937b858a120ec670d324c90d59af4c07a2f53;p=thirdparty%2Fhostap.git DPP: Allow Controller to initiate PKEX through Relay Relay will need to allow the PKEX Exchange Response message to be handled similarly to the Authentication Response message to allow this sequence to be completed successfully. Signed-off-by: Jouni Malinen --- diff --git a/src/common/dpp_tcp.c b/src/common/dpp_tcp.c index cbe8d2ca5..036991850 100644 --- a/src/common/dpp_tcp.c +++ b/src/common/dpp_tcp.c @@ -571,7 +571,8 @@ int dpp_relay_rx_action(struct dpp_global *dpp, const u8 *src, const u8 *hdr, if (os_memcmp(src, conn->mac_addr, ETH_ALEN) == 0) return dpp_relay_tx(conn, hdr, buf, len); - if (type == DPP_PA_AUTHENTICATION_RESP && + if ((type == DPP_PA_PKEX_EXCHANGE_RESP || + type == DPP_PA_AUTHENTICATION_RESP) && conn->freq == 0 && is_broadcast_ether_addr(conn->mac_addr)) { wpa_printf(MSG_DEBUG,