From: Andrew Beltrano Date: Mon, 21 Sep 2020 13:49:37 +0000 (+0000) Subject: DPP2: Presence Announcement notification in AP X-Git-Tag: hostap_2_10~933 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=980c4da413e97dbb653a579cafc251e262f65fd4;p=thirdparty%2Fhostap.git DPP2: Presence Announcement notification in AP 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 --- diff --git a/src/ap/dpp_hostapd.c b/src/ap/dpp_hostapd.c index 2a28239e1..6772a8748 100644 --- a/src/ap/dpp_hostapd.c +++ b/src/ap/dpp_hostapd.c @@ -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,