]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Allow Controller to initiate PKEX through Relay
authorJouni Malinen <quic_jouni@quicinc.com>
Tue, 19 Jul 2022 18:26:17 +0000 (21:26 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 19 Jul 2022 20:28:33 +0000 (23:28 +0300)
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 <quic_jouni@quicinc.com>
src/common/dpp_tcp.c

index cbe8d2ca50863933f59ab6ba6e40151236cb62bf..036991850ccb7d79cf93fe7ee54ae0429ebb0073 100644 (file)
@@ -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,