From: Jouni Malinen Date: Sun, 8 May 2022 14:25:09 +0000 (+0300) Subject: DPP: Debug print if not relay is available for PKEX exchange X-Git-Tag: hostap_2_11~1910 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc9648a6a1854861892807a525cda0c385dcfb99;p=thirdparty%2Fhostap.git 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 --- 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 */