aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap
diff options
context:
space:
mode:
Diffstat (limited to 'src/ap')
-rw-r--r--src/ap/hostapd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c
index e257174..2f3e787 100644
--- a/src/ap/hostapd.c
+++ b/src/ap/hostapd.c
@@ -2308,10 +2308,12 @@ int hostapd_setup_interface(struct hostapd_iface *iface)
{
int ret;
+ if (!iface->conf)
+ return -1;
ret = setup_interface(iface);
if (ret) {
wpa_printf(MSG_ERROR, "%s: Unable to setup interface.",
- iface->conf ? iface->conf->bss[0]->iface : "N/A");
+ iface->conf->bss[0]->iface);
return -1;
}