aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/dump_state.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-06 15:53:59 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-06 15:53:59 (GMT)
commit74784010af6b2965b24ee975e4a749d157b20df6 (patch)
tree8071fe4623960b516ba61856a29a54576f6ba359 /hostapd/dump_state.c
parent0bc377fa938c7f70a401a3109adea7fe485a7ef8 (diff)
downloadhostap-74784010af6b2965b24ee975e4a749d157b20df6.zip
hostap-74784010af6b2965b24ee975e4a749d157b20df6.tar.gz
hostap-74784010af6b2965b24ee975e4a749d157b20df6.tar.bz2
Remove conditional no-RADIUS build from src/radius
Make it responsibility of the src/radius user to handle conditional build rules.
Diffstat (limited to 'hostapd/dump_state.c')
-rw-r--r--hostapd/dump_state.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hostapd/dump_state.c b/hostapd/dump_state.c
index fe57178..d7c5323 100644
--- a/hostapd/dump_state.c
+++ b/hostapd/dump_state.c
@@ -75,7 +75,9 @@ static void hostapd_dump_state(struct hostapd_data *hapd)
time_t now;
struct sta_info *sta;
int i;
+#ifndef CONFIG_NO_RADIUS
char *buf;
+#endif /* CONFIG_NO_RADIUS */
if (!hapd->conf->dump_log_name) {
wpa_printf(MSG_DEBUG, "Dump file not defined - ignoring dump "
@@ -143,6 +145,7 @@ static void hostapd_dump_state(struct hostapd_data *hapd)
ieee802_1x_dump_state(f, " ", sta);
}
+#ifndef CONFIG_NO_RADIUS
buf = os_malloc(4096);
if (buf) {
int count = radius_client_get_mib(hapd->radius, buf, 4096);
@@ -162,6 +165,7 @@ static void hostapd_dump_state(struct hostapd_data *hapd)
fprintf(f, "%s", buf);
os_free(buf);
}
+#endif /* CONFIG_NO_RADIUS */
fclose(f);
}