From e2d88f86ee15f9b6fb352e148df94aa38c31e16a Mon Sep 17 00:00:00 2001 From: Michal Kazior Date: Tue, 11 May 2021 10:56:18 +0000 Subject: [PATCH] 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 --- src/common/dpp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } -- 2.47.2