aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/accounting.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-12-18 16:13:31 (GMT)
committerJouni Malinen <j@w1.fi>2012-12-18 16:13:31 (GMT)
commit8b2486115479582b2ab164a4508f22ed23a9a4cb (patch)
tree6f35cf174851a51c2b4817bd7455e8c87de7c8d1 /src/ap/accounting.c
parent2ec535fd376cf0f08c55d709024e3e1d045a266f (diff)
downloadhostap-8b2486115479582b2ab164a4508f22ed23a9a4cb.zip
hostap-8b2486115479582b2ab164a4508f22ed23a9a4cb.tar.gz
hostap-8b2486115479582b2ab164a4508f22ed23a9a4cb.tar.bz2
Add Acct-Session-Id into Access-Request messages
This optional attribute may make it easier to bind together the Access-Request and Accounting-Request messages. The accounting session identifier is now generated when the STA associates instead of waiting for the actual session to start after successfull authentication. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/ap/accounting.c')
-rw-r--r--src/ap/accounting.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ap/accounting.c b/src/ap/accounting.c
index 7563b52..9540531 100644
--- a/src/ap/accounting.c
+++ b/src/ap/accounting.c
@@ -26,8 +26,6 @@
* input/output octets and updates Acct-{Input,Output}-Gigawords. */
#define ACCT_DEFAULT_UPDATE_INTERVAL 300
-static void accounting_sta_get_id(struct hostapd_data *hapd,
- struct sta_info *sta);
static void accounting_sta_interim(struct hostapd_data *hapd,
struct sta_info *sta);
@@ -210,7 +208,6 @@ void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta)
if (sta->acct_session_started)
return;
- accounting_sta_get_id(hapd, sta);
hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_RADIUS,
HOSTAPD_LEVEL_INFO,
"starting accounting session %08X-%08X",
@@ -377,7 +374,7 @@ void accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta)
}
-static void accounting_sta_get_id(struct hostapd_data *hapd,
+void accounting_sta_get_id(struct hostapd_data *hapd,
struct sta_info *sta)
{
sta->acct_session_id_lo = hapd->acct_session_id_lo++;