From fc9648a6a1854861892807a525cda0c385dcfb99 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 8 May 2022 17:25:09 +0300 Subject: [PATCH] DPP: Debug print if not relay is available for PKEX exchange This makes it easier to see what happened with the received PKEX frame. Signed-off-by: Jouni Malinen --- src/ap/dpp_hostapd.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ap/dpp_hostapd.c b/src/ap/dpp_hostapd.c index d4cbed88d..55e2d8bc6 100644 --- a/src/ap/dpp_hostapd.c +++ b/src/ap/dpp_hostapd.c @@ -2064,9 +2064,11 @@ hostapd_dpp_rx_pkex_exchange_req(struct hostapd_data *hapd, const u8 *src, try_relay: #ifdef CONFIG_DPP2 - if (v2) - dpp_relay_rx_action(hapd->iface->interfaces->dpp, - src, hdr, buf, len, freq, NULL, NULL, hapd); + if (v2 && dpp_relay_rx_action(hapd->iface->interfaces->dpp, + src, hdr, buf, len, freq, NULL, NULL, + hapd) != 0) + wpa_printf(MSG_DEBUG, + "DPP: No Relay available for the message"); #else /* CONFIG_DPP2 */ wpa_printf(MSG_DEBUG, "DPP: No relay functionality included - skip"); #endif /* CONFIG_DPP2 */