]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Expose own and peer bootstrap info ids on authentication success
authorMichal Kazior <michal@plume.com>
Tue, 11 May 2021 10:56:18 +0000 (10:56 +0000)
committerJouni Malinen <j@w1.fi>
Tue, 29 Nov 2022 14:17:14 +0000 (16:17 +0200)
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 <michal@plume.com>
src/common/dpp.c

index e12522bdbdd88734dc1abc05e2b243d17776c792..6b72a23ff89d8202e5aa53ecc88c86062a3ea91f 100644 (file)
@@ -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);
 }