[PATCHv3 3/3] DPP: expose own and peer bootstrap info ids on dpp auth

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Michal Kazior <michal@xxxxxxxxx>

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@xxxxxxxxx>
---

Notes:
    v2:
     - added to allow bootstrap -- pk hash mapping

 src/common/dpp.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/common/dpp.c b/src/common/dpp.c
index 56c442d6d..1e5acb6b5 100644
--- a/src/common/dpp.c
+++ b/src/common/dpp.c
@@ -4402,8 +4402,11 @@ void dpp_notify_auth_success(struct dpp_authentication *auth, int initiator)
 	os_memset(hex, 0, sizeof(hex));
 	dpp_get_pubkey_hash(auth->peer_protocol_key, hex, sizeof(hex));
 
-	wpa_msg(auth->msg_ctx, MSG_INFO, DPP_EVENT_AUTH_SUCCESS "init=%d pkhash=%s",
-		initiator, hex);
+	wpa_msg(auth->msg_ctx, MSG_INFO, DPP_EVENT_AUTH_SUCCESS
+		"init=%d pkhash=%s own=%d peer=%d",
+		initiator, hex,
+		auth->own_bi ? auth->own_bi->id : -1,
+		auth->peer_bi ? auth->peer_bi->id : -1);
 }
 
 
-- 
2.27.0


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux