OSDN Git Service

Accumulative patch from commit f5f37d3a4fc2df2a24676b4f95afca15ed793cba
[android-x86/external-wpa_supplicant_8.git] / src / ap / ieee802_1x.c
index c4d3da8..e1b11ba 100644 (file)
@@ -99,8 +99,10 @@ void ieee802_1x_set_sta_authorized(struct hostapd_data *hapd,
                       "driver (errno=%d).\n", MAC2STR(sta->addr), errno);
        }
 
-       if (authorized)
+       if (authorized) {
+               os_get_time(&sta->connected_time);
                accounting_sta_start(hapd, sta);
+       }
 }
 
 
@@ -1684,8 +1686,7 @@ static int ieee802_1x_get_eap_user(void *ctx, const u8 *identity,
        const struct hostapd_eap_user *eap_user;
        int i;
 
-       eap_user = hostapd_get_eap_user(hapd->conf, identity,
-                                       identity_len, phase2);
+       eap_user = hostapd_get_eap_user(hapd, identity, identity_len, phase2);
        if (eap_user == NULL)
                return -1;