hostapd: Do not call eloop_terminate() on interface setup failure
The caller is able to handle the error code properly and there is no need to forcefully stop the eloop run here.
This commit is contained in:
parent
65668bfb77
commit
bee07ce805
1 changed files with 1 additions and 2 deletions
|
@ -1348,9 +1348,8 @@ int hostapd_setup_interface(struct hostapd_iface *iface)
|
||||||
|
|
||||||
ret = setup_interface(iface);
|
ret = setup_interface(iface);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
wpa_printf(MSG_DEBUG, "%s: Unable to setup interface.",
|
wpa_printf(MSG_ERROR, "%s: Unable to setup interface.",
|
||||||
iface->bss[0]->conf->iface);
|
iface->bss[0]->conf->iface);
|
||||||
eloop_terminate();
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue