Fix hostapd build without RADIUS server
This commit is contained in:
parent
9008a3e44d
commit
616ea674c8
1 changed files with 3 additions and 0 deletions
|
@ -156,6 +156,7 @@ static void hostapd_dump_state(struct hostapd_data *hapd)
|
||||||
buf[count] = '\0';
|
buf[count] = '\0';
|
||||||
fprintf(f, "%s", buf);
|
fprintf(f, "%s", buf);
|
||||||
|
|
||||||
|
#ifdef RADIUS_SERVER
|
||||||
count = radius_server_get_mib(hapd->radius_srv, buf, 4096);
|
count = radius_server_get_mib(hapd->radius_srv, buf, 4096);
|
||||||
if (count < 0)
|
if (count < 0)
|
||||||
count = 0;
|
count = 0;
|
||||||
|
@ -163,6 +164,8 @@ static void hostapd_dump_state(struct hostapd_data *hapd)
|
||||||
count = 4095;
|
count = 4095;
|
||||||
buf[count] = '\0';
|
buf[count] = '\0';
|
||||||
fprintf(f, "%s", buf);
|
fprintf(f, "%s", buf);
|
||||||
|
#endif /* RADIUS_SERVER */
|
||||||
|
|
||||||
os_free(buf);
|
os_free(buf);
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_NO_RADIUS */
|
#endif /* CONFIG_NO_RADIUS */
|
||||||
|
|
Loading…
Add table
Reference in a new issue