5 Jul 2012 16:19
[PATCH] accounting: staticise accounting_sta_interim
Baruch Siach <baruch <at> tkos.co.il>
2012-07-05 14:19:51 GMT
2012-07-05 14:19:51 GMT
This routine is not used anywhere else.
Signed-hostap Baruch Siach <baruch <at> tkos.co.il>
---
src/ap/accounting.c | 25 +++++++++++++------------
src/ap/accounting.h | 1 -
2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/ap/accounting.c b/src/ap/accounting.c
index 2c3a6d9..40828c1 100644
--- a/src/ap/accounting.c
+++ b/src/ap/accounting.c
<at> <at> -242,6 +242,19 <at> <at> static int accounting_sta_update_stats(struct hostapd_data *hapd,
}
+/**
+ * accounting_sta_interim - Send a interim STA accounting report
+ * <at> hapd: hostapd BSS data
+ * <at> sta: The station
+ */
+static void accounting_sta_interim(struct hostapd_data *hapd,
+ struct sta_info *sta)
+{
+ if (sta->acct_session_started)
+ accounting_sta_report(hapd, sta, 0);
+}
+
+
static void accounting_interim_update(void *eloop_ctx, void *timeout_ctx)
(Continue reading)
RSS Feed