From b52c0d453fac399ad24340c3879960ac86674e14 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 16 Jan 2015 13:07:14 +0200 Subject: [PATCH] Add authMultiSessionId into hostapd STA info dot1xAuthSessionId was previously used to make Acct-Session-Id available through the control interface. While there is no IEEE 802.1X MIB variable for Acct-Multi-Session-Id, it is useful to make this value available as well. Signed-off-by: Jouni Malinen --- src/ap/ieee802_1x.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ap/ieee802_1x.c b/src/ap/ieee802_1x.c index 2287b281d..f11a405d1 100644 --- a/src/ap/ieee802_1x.c +++ b/src/ap/ieee802_1x.c @@ -2487,6 +2487,16 @@ int ieee802_1x_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta, return len; len += ret; + if (sm->acct_multi_session_id_hi) { + ret = os_snprintf(buf + len, buflen - len, + "authMultiSessionId=%08X+%08X\n", + sm->acct_multi_session_id_hi, + sm->acct_multi_session_id_lo); + if (os_snprintf_error(buflen - len, ret)) + return len; + len += ret; + } + name1 = eap_server_get_name(0, sm->eap_type_authsrv); name2 = eap_server_get_name(0, sm->eap_type_supp); ret = os_snprintf(buf + len, buflen - len,