[PATCH v3 3/3] DPP2: Presence Announcement notification in STA

Andrew Beltrano anbeltra at microsoft.com
Mon Sep 21 09:50:31 EDT 2020


Generate a control event upon receipt of DPP presence announcement
frames. This allows external programs to instrument wpa_supplicant with
bootstrapping information on-demand.

Signed-off-by: Andrew Beltrano <anbeltra at microsoft.com>
---
 wpa_supplicant/dpp_supplicant.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/wpa_supplicant/dpp_supplicant.c b/wpa_supplicant/dpp_supplicant.c
index 28404b8d7..7ef781f4c 100644
--- a/wpa_supplicant/dpp_supplicant.c
+++ b/wpa_supplicant/dpp_supplicant.c
@@ -1978,6 +1978,8 @@ wpas_dpp_rx_presence_announcement(struct wpa_supplicant *wpa_s, const u8 *src,
 	wpa_hexdump(MSG_MSGDUMP, "DPP: Responder Bootstrapping Key Hash",
 		    r_bootstrap, r_bootstrap_len);
 	peer_bi = dpp_bootstrap_find_chirp(wpa_s->dpp, r_bootstrap);
+	dpp_notify_chirp_received(wpa_s, peer_bi ? peer_bi->id : -1, src, freq,
+					r_bootstrap);
 	if (!peer_bi) {
 		wpa_printf(MSG_DEBUG,
 			   "DPP: No matching bootstrapping information found");
-- 
2.25.1


More information about the Hostap mailing list