mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-30 16:54:04 -05:00
hostapd: Use start_ctrl_iface() from hostapd_add_iface()
Better share the same function for initializing control interface from the two possible paths that can add a new interface to hostapd. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
bf7f09bd24
commit
e4ba031531
@ -1766,13 +1766,9 @@ int hostapd_add_iface(struct hapd_interfaces *interfaces, char *buf)
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hapd_iface->interfaces &&
|
if (start_ctrl_iface(hapd_iface) < 0)
|
||||||
hapd_iface->interfaces->ctrl_iface_init &&
|
|
||||||
hapd_iface->interfaces->ctrl_iface_init(hapd_iface->bss[0])) {
|
|
||||||
wpa_printf(MSG_ERROR, "%s: Failed to setup control "
|
|
||||||
"interface", __func__);
|
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
|
||||||
wpa_printf(MSG_INFO, "Add interface '%s'", conf->bss[0]->iface);
|
wpa_printf(MSG_INFO, "Add interface '%s'", conf->bss[0]->iface);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user