|
@@ -26,8 +26,6 @@
|
|
|
* input/output octets and updates Acct-{Input,Output}-Gigawords. */
|
|
|
#define ACCT_DEFAULT_UPDATE_INTERVAL 300
|
|
|
|
|
|
-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);
|
|
|
|
|
@@ -210,7 +208,6 @@ void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta)
|
|
|
if (sta->acct_session_started)
|
|
|
return;
|
|
|
|
|
|
- accounting_sta_get_id(hapd, sta);
|
|
|
hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_RADIUS,
|
|
|
HOSTAPD_LEVEL_INFO,
|
|
|
"starting accounting session %08X-%08X",
|
|
@@ -377,7 +374,7 @@ void accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta)
|
|
|
}
|
|
|
|
|
|
|
|
|
-static void accounting_sta_get_id(struct hostapd_data *hapd,
|
|
|
+void accounting_sta_get_id(struct hostapd_data *hapd,
|
|
|
struct sta_info *sta)
|
|
|
{
|
|
|
sta->acct_session_id_lo = hapd->acct_session_id_lo++;
|