]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix hostapd build without RADIUS server
authorJouni Malinen <jouni.malinen@atheros.com>
Fri, 11 Dec 2009 14:29:28 +0000 (16:29 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 11 Dec 2009 14:29:28 +0000 (16:29 +0200)
hostapd/dump_state.c

index d7c53236da20cc9e7db5456573513ab580dd7c77..dcd21bb7603c5d8cc5639bec4ccbd67f8b22805f 100644 (file)
@@ -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 */