mirror of
https://github.com/openwrt/openwrt.git
synced 2025-03-13 07:54:14 +00:00
hostapd: add missing ctrl socket initialization on bss add
Fixes adding/removing individual bss interfaces Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
6a10da2934
commit
d65d546bce
@ -362,6 +362,8 @@ uc_hostapd_iface_add_bss(uc_vm_t *vm, size_t nargs)
|
|||||||
|
|
||||||
hapd->driver = iface->bss[0]->driver;
|
hapd->driver = iface->bss[0]->driver;
|
||||||
hapd->drv_priv = iface->bss[0]->drv_priv;
|
hapd->drv_priv = iface->bss[0]->drv_priv;
|
||||||
|
os_strlcpy(hapd->ctrl_sock_iface, hapd->conf->iface,
|
||||||
|
sizeof(hapd->ctrl_sock_iface));
|
||||||
if (interfaces->ctrl_iface_init &&
|
if (interfaces->ctrl_iface_init &&
|
||||||
interfaces->ctrl_iface_init(hapd) < 0)
|
interfaces->ctrl_iface_init(hapd) < 0)
|
||||||
goto free_hapd;
|
goto free_hapd;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user