Add authMultiSessionId into hostapd STA info
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 16 Jan 2015 11:07:14 +0000 (13:07 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 16 Jan 2015 11:07:14 +0000 (13:07 +0200)
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 <jouni@qca.qualcomm.com>
src/ap/ieee802_1x.c

index 2287b28..f11a405 100644 (file)
@@ -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,