accounting: Staticise accounting_sta_interim

This routine is not used anywhere else.

Signed-hostap: Baruch Siach <baruch@tkos.co.il>
This commit is contained in:
Baruch Siach 2012-08-05 19:40:49 +03:00 committed by Jouni Malinen
parent c10fe8c1df
commit 37d428aef9
2 changed files with 4 additions and 2 deletions

View File

@ -28,6 +28,8 @@
static void accounting_sta_get_id(struct hostapd_data *hapd, static void accounting_sta_get_id(struct hostapd_data *hapd,
struct sta_info *sta); 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, 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 * @hapd: hostapd BSS data
* @sta: The station * @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) if (sta->acct_session_started)
accounting_sta_report(hapd, sta, 0); accounting_sta_report(hapd, sta, 0);

View File

@ -9,7 +9,6 @@
#ifndef ACCOUNTING_H #ifndef ACCOUNTING_H
#define ACCOUNTING_H #define ACCOUNTING_H
void accounting_sta_interim(struct hostapd_data *hapd, struct sta_info *sta);
#ifdef CONFIG_NO_ACCOUNTING #ifdef CONFIG_NO_ACCOUNTING
static inline void accounting_sta_start(struct hostapd_data *hapd, static inline void accounting_sta_start(struct hostapd_data *hapd,
struct sta_info *sta) struct sta_info *sta)