]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP2: Presence Announcement notification in STA
authorAndrew Beltrano <anbeltra@microsoft.com>
Mon, 21 Sep 2020 13:50:31 +0000 (13:50 +0000)
committerJouni Malinen <j@w1.fi>
Wed, 7 Oct 2020 18:23:05 +0000 (21:23 +0300)
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>
wpa_supplicant/dpp_supplicant.c

index 023895072cb72f90e14cb0a3138fabe03e8850b0..1008207b2d962e5de747784ab0ffccce858a96b5 100644 (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",
                    r_bootstrap, r_bootstrap_len);
        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) {
                wpa_printf(MSG_DEBUG,
                           "DPP: No matching bootstrapping information found");