2008-02-28 02:34:43 +01:00
|
|
|
/*
|
|
|
|
* hostapd / RADIUS Accounting
|
|
|
|
* Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
2012-02-11 15:46:35 +01:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2008-02-28 02:34:43 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ACCOUNTING_H
|
|
|
|
#define ACCOUNTING_H
|
|
|
|
|
2009-01-08 18:15:25 +01:00
|
|
|
#ifdef CONFIG_NO_ACCOUNTING
|
|
|
|
static inline void accounting_sta_start(struct hostapd_data *hapd,
|
|
|
|
struct sta_info *sta)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void accounting_sta_stop(struct hostapd_data *hapd,
|
|
|
|
struct sta_info *sta)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int accounting_init(struct hostapd_data *hapd)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void accounting_deinit(struct hostapd_data *hapd)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
#else /* CONFIG_NO_ACCOUNTING */
|
|
|
|
void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta);
|
2008-02-28 02:34:43 +01:00
|
|
|
void accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta);
|
|
|
|
int accounting_init(struct hostapd_data *hapd);
|
|
|
|
void accounting_deinit(struct hostapd_data *hapd);
|
2009-01-08 18:15:25 +01:00
|
|
|
#endif /* CONFIG_NO_ACCOUNTING */
|
2008-02-28 02:34:43 +01:00
|
|
|
|
|
|
|
#endif /* ACCOUNTING_H */
|