]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP2: Presence Announcement notification in AP
authorAndrew Beltrano <anbeltra@microsoft.com>
Mon, 21 Sep 2020 13:49:37 +0000 (13:49 +0000)
committerJouni Malinen <j@w1.fi>
Wed, 7 Oct 2020 18:20:18 +0000 (21:20 +0300)
Generate a control interface event upon receipt of DPP Presence
Announcement frames. This allows external programs to instrument hostapd
with bootstrapping information on-demand.

Signed-off-by: Andrew Beltrano <anbeltra@microsoft.com>
src/ap/dpp_hostapd.c

index 2a28239e10e002cf7b806a4fd6922cda37ebae91..6772a8748a6d96ebd9d2ece3a4336ffff4be0169 100644 (file)
@@ -1228,6 +1228,9 @@ hostapd_dpp_rx_presence_announcement(struct hostapd_data *hapd, const u8 *src,
                    r_bootstrap, r_bootstrap_len);
        peer_bi = dpp_bootstrap_find_chirp(hapd->iface->interfaces->dpp,
                                           r_bootstrap);
+       dpp_notify_chirp_received(hapd->msg_ctx,
+                                 peer_bi ? (int) peer_bi->id : -1,
+                                 src, freq, r_bootstrap);
        if (!peer_bi) {
                if (dpp_relay_rx_action(hapd->iface->interfaces->dpp,
                                        src, hdr, buf, len, freq, NULL,