aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/dump_state.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-12-11 14:29:28 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-11 14:29:28 (GMT)
commit616ea674c8b21587436b5f7800899d85c8e96b51 (patch)
tree78aea134cdf06c28f2d74b29b3877627bcf3244f /hostapd/dump_state.c
parent9008a3e44d3607099f10df31016dcde97a25c6d7 (diff)
downloadhostap-616ea674c8b21587436b5f7800899d85c8e96b51.zip
hostap-616ea674c8b21587436b5f7800899d85c8e96b51.tar.gz
hostap-616ea674c8b21587436b5f7800899d85c8e96b51.tar.bz2
Fix hostapd build without RADIUS server
Diffstat (limited to 'hostapd/dump_state.c')
-rw-r--r--hostapd/dump_state.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hostapd/dump_state.c b/hostapd/dump_state.c
index d7c5323..dcd21bb 100644
--- a/hostapd/dump_state.c
+++ b/hostapd/dump_state.c
@@ -156,6 +156,7 @@ static void hostapd_dump_state(struct hostapd_data *hapd)
buf[count] = '\0';
fprintf(f, "%s", buf);
+#ifdef RADIUS_SERVER
count = radius_server_get_mib(hapd->radius_srv, buf, 4096);
if (count < 0)
count = 0;
@@ -163,6 +164,8 @@ static void hostapd_dump_state(struct hostapd_data *hapd)
count = 4095;
buf[count] = '\0';
fprintf(f, "%s", buf);
+#endif /* RADIUS_SERVER */
+
os_free(buf);
}
#endif /* CONFIG_NO_RADIUS */