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 <michal@plume.com>
This commit is contained in:
Michal Kazior 2021-05-11 10:56:18 +00:00 committed by Jouni Malinen
parent 043dedee83
commit e2d88f86ee

View 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);
}