]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Debug print if not relay is available for PKEX exchange
authorJouni Malinen <j@w1.fi>
Sun, 8 May 2022 14:25:09 +0000 (17:25 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 8 May 2022 14:25:09 +0000 (17:25 +0300)
This makes it easier to see what happened with the received PKEX frame.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/dpp_hostapd.c

index d4cbed88ddf6ccb521c297657a97f5b548768cc0..55e2d8bc6a50b307cfdb692b8c8d10cf53572eee 100644 (file)
@@ -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 */