DPP2: Presence Announcement notification in STA

Generate a control interface 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@microsoft.com>
This commit is contained in:
Andrew Beltrano 2020-09-21 13:50:31 +00:00 committed by Jouni Malinen
parent 980c4da413
commit 0e8d569d47

View file

@ -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", wpa_hexdump(MSG_MSGDUMP, "DPP: Responder Bootstrapping Key Hash",
r_bootstrap, r_bootstrap_len); r_bootstrap, r_bootstrap_len);
peer_bi = dpp_bootstrap_find_chirp(wpa_s->dpp, r_bootstrap); peer_bi = dpp_bootstrap_find_chirp(wpa_s->dpp, r_bootstrap);
dpp_notify_chirp_received(wpa_s, peer_bi ? (int) peer_bi->id : -1, src,
freq, r_bootstrap);
if (!peer_bi) { if (!peer_bi) {
wpa_printf(MSG_DEBUG, wpa_printf(MSG_DEBUG,
"DPP: No matching bootstrapping information found"); "DPP: No matching bootstrapping information found");