aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/accounting.h
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.h
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.h')
-rw-r--r--src/ap/accounting.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ap/accounting.h b/src/ap/accounting.h
index 9d13d01..dcc54ee 100644
--- a/src/ap/accounting.h
+++ b/src/ap/accounting.h
@@ -10,6 +10,11 @@
#define ACCOUNTING_H
#ifdef CONFIG_NO_ACCOUNTING
+static inline void accounting_sta_get_id(struct hostapd_data *hapd,
+ struct sta_info *sta)
+{
+}
+
static inline void accounting_sta_start(struct hostapd_data *hapd,
struct sta_info *sta)
{
@@ -29,6 +34,7 @@ static inline void accounting_deinit(struct hostapd_data *hapd)
{
}
#else /* CONFIG_NO_ACCOUNTING */
+void accounting_sta_get_id(struct hostapd_data *hapd, struct sta_info *sta);
void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta);
void accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta);
int accounting_init(struct hostapd_data *hapd);