From: Michal Kazior Date: Tue, 11 May 2021 10:56:18 +0000 (+0000) Subject: DPP: Expose own and peer bootstrap info ids on authentication success X-Git-Tag: hostap_2_11~1442 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2d88f86ee15f9b6fb352e148df94aa38c31e16a;p=thirdparty%2Fhostap.git DPP: Expose own and peer bootstrap info ids on authentication success The system may be interested in knowing which bootstrap information entries are being exercised. This could be used for statistics or completion signaling to upper application layer outside of hostapd, along with the public key hash. Signed-off-by: Michal Kazior --- diff --git a/src/common/dpp.c b/src/common/dpp.c index e12522bdb..6b72a23ff 100644 --- a/src/common/dpp.c +++ b/src/common/dpp.c @@ -5049,8 +5049,9 @@ void dpp_notify_auth_success(struct dpp_authentication *auth, int initiator) hex[0] = '\0'; } wpa_msg(auth->msg_ctx, MSG_INFO, - DPP_EVENT_AUTH_SUCCESS "init=%d pkhash=%s", - initiator, hex); + DPP_EVENT_AUTH_SUCCESS "init=%d pkhash=%s own=%d peer=%d", + initiator, hex, auth->own_bi ? (int) auth->own_bi->id : -1, + auth->peer_bi ? (int) auth->peer_bi->id : -1); }