aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2012-08-05 16:40:49 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-05 16:40:49 (GMT)
commit37d428aef901b5680124f7dc0da34e067c391a0b (patch)
tree1cb8f82ad680b01cf262e3ad6ee75b5cd9567fe7
parentc10fe8c1dfaa294290aaeb44885bb7efa4150abc (diff)
downloadhostap-37d428aef901b5680124f7dc0da34e067c391a0b.zip
hostap-37d428aef901b5680124f7dc0da34e067c391a0b.tar.gz
hostap-37d428aef901b5680124f7dc0da34e067c391a0b.tar.bz2
accounting: Staticise accounting_sta_interim
This routine is not used anywhere else. Signed-hostap: Baruch Siach <baruch@tkos.co.il>
-rw-r--r--src/ap/accounting.c5
-rw-r--r--src/ap/accounting.h1
2 files changed, 4 insertions, 2 deletions
diff --git a/src/ap/accounting.c b/src/ap/accounting.c
index 2c3a6d9..0b838a4 100644
--- a/src/ap/accounting.c
+++ b/src/ap/accounting.c
@@ -28,6 +28,8 @@
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);
static struct radius_msg * accounting_msg(struct hostapd_data *hapd,
@@ -415,7 +417,8 @@ static void accounting_sta_report(struct hostapd_data *hapd,
* @hapd: hostapd BSS data
* @sta: The station
*/
-void accounting_sta_interim(struct hostapd_data *hapd, struct sta_info *sta)
+static void accounting_sta_interim(struct hostapd_data *hapd,
+ struct sta_info *sta)
{
if (sta->acct_session_started)
accounting_sta_report(hapd, sta, 0);
diff --git a/src/ap/accounting.h b/src/ap/accounting.h
index 797e24d..9d13d01 100644
--- a/src/ap/accounting.h
+++ b/src/ap/accounting.h
@@ -9,7 +9,6 @@
#ifndef ACCOUNTING_H
#define ACCOUNTING_H
-void accounting_sta_interim(struct hostapd_data *hapd, struct sta_info *sta);
#ifdef CONFIG_NO_ACCOUNTING
static inline void accounting_sta_start(struct hostapd_data *hapd,
struct sta_info *sta)