mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-28 20:54:37 +04:00
hostapd.interfaces and hostapd.bss were null until the first call that
adds, removes or renames an interface. The first config of a phy calls
iface_reload_links(), which reads hostapd.interfaces[name] outside a
try block, so the config failed with "left-hand side expression is
null" and the phy did not come up.
Fill both objects before hostapd.uc runs, as wpa_supplicant does for
wpas.interfaces.
Fixes: 21b47bd63f ("hostapd: announce the removal of an MLD link before a radio restart")
Signed-off-by: Felix Fietkau <nbd@nbd.name>