diff options
author | Jouni Malinen <j@w1.fi> | 2008-11-23 10:47:36 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2008-11-23 10:47:36 +0200 |
commit | b1fa8bf1291a9bc7ba1591f59db8d1bab136994a (patch) | |
tree | f692fed434c20c6d9a2fee0c443973d53e93bbe9 /hostapd | |
parent | 39e50be082b4d07022d41e5a6245e5ee58e06807 (diff) | |
download | external_wpa_supplicant_8_ti-b1fa8bf1291a9bc7ba1591f59db8d1bab136994a.zip external_wpa_supplicant_8_ti-b1fa8bf1291a9bc7ba1591f59db8d1bab136994a.tar.gz external_wpa_supplicant_8_ti-b1fa8bf1291a9bc7ba1591f59db8d1bab136994a.tar.bz2 |
Allocate new Acct-Session-Id on EAPOL-Logoff
Stop accounting session on EAPOL-Logoff and use new Acct-Session-Id if
STA authenticates again within same association after this.
Diffstat (limited to 'hostapd')
-rw-r--r-- | hostapd/ieee802_1x.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hostapd/ieee802_1x.c b/hostapd/ieee802_1x.c index 4ba4b23..9d331ae 100644 --- a/hostapd/ieee802_1x.c +++ b/hostapd/ieee802_1x.c @@ -766,6 +766,8 @@ void ieee802_1x_receive(struct hostapd_data *hapd, const u8 *sa, const u8 *buf, "from STA"); sta->acct_terminate_cause = RADIUS_ACCT_TERMINATE_CAUSE_USER_REQUEST; + accounting_sta_stop(hapd, sta); + accounting_sta_get_id(hapd, sta); sta->eapol_sm->eapolLogoff = TRUE; sta->eapol_sm->dot1xAuthEapolLogoffFramesRx++; break; |