From fb2937b858a120ec670d324c90d59af4c07a2f53 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 19 Jul 2022 21:26:17 +0300 Subject: [PATCH] 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 --- src/common/dpp_tcp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,