From: Jouni Malinen Date: Fri, 16 Jan 2015 11:07:14 +0000 (+0200) Subject: Add authMultiSessionId into hostapd STA info X-Git-Tag: hostap_2_4~402 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b52c0d453fac399ad24340c3879960ac86674e14;p=thirdparty%2Fhostap.git 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 --- 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,