Do not call driver_init if hostapd interface is not yet configured
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
c0971c561f
commit
0dcc4dc4b3
1 changed files with 6 additions and 4 deletions
|
@ -339,11 +339,13 @@ hostapd_interface_init(struct hapd_interfaces *interfaces,
|
||||||
iface->bss[0]->conf->logger_stdout_level--;
|
iface->bss[0]->conf->logger_stdout_level--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (iface->conf->bss[0].iface[0] != 0) {
|
||||||
if (hostapd_driver_init(iface) ||
|
if (hostapd_driver_init(iface) ||
|
||||||
hostapd_setup_interface(iface)) {
|
hostapd_setup_interface(iface)) {
|
||||||
hostapd_interface_deinit_free(iface);
|
hostapd_interface_deinit_free(iface);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return iface;
|
return iface;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue