blob: de5a33f3c7ce53d95e8a94490dc5427dbadf27ff [file] [log] [blame]
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07001/*
2 * hostapd / RADIUS Accounting
3 * Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi>
4 *
Dmitry Shmidtc5ec7f52012-03-06 16:33:24 -08005 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07007 */
8
9#ifndef ACCOUNTING_H
10#define ACCOUNTING_H
11
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -070012#ifdef CONFIG_NO_ACCOUNTING
Dmitry Shmidtb97e4282016-02-08 10:16:07 -080013static inline int accounting_sta_get_id(struct hostapd_data *hapd,
14 struct sta_info *sta)
Dmitry Shmidta54fa5f2013-01-15 13:53:35 -080015{
Dmitry Shmidtb97e4282016-02-08 10:16:07 -080016 return 0;
Dmitry Shmidta54fa5f2013-01-15 13:53:35 -080017}
18
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -070019static inline void accounting_sta_start(struct hostapd_data *hapd,
20 struct sta_info *sta)
21{
22}
23
24static inline void accounting_sta_stop(struct hostapd_data *hapd,
25 struct sta_info *sta)
26{
27}
28
29static inline int accounting_init(struct hostapd_data *hapd)
30{
31 return 0;
32}
33
34static inline void accounting_deinit(struct hostapd_data *hapd)
35{
36}
37#else /* CONFIG_NO_ACCOUNTING */
Dmitry Shmidtb97e4282016-02-08 10:16:07 -080038int accounting_sta_get_id(struct hostapd_data *hapd, struct sta_info *sta);
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -070039void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta);
40void accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta);
41int accounting_init(struct hostapd_data *hapd);
42void accounting_deinit(struct hostapd_data *hapd);
43#endif /* CONFIG_NO_ACCOUNTING */
44
45#endif /* ACCOUNTING_H */