hostapd: add extra sanity checks for config reload

Avoid getting stuck because of bad configurations

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2023-08-08 20:11:42 +02:00
parent 5ae3b195a1
commit 9b56c27a8a

View File

@ -117,6 +117,9 @@ function iface_reload_config(phy, config, old_config)
if (is_equal(old_config.bss, config.bss))
return true;
if (!old_config.bss || !old_config.bss[0])
return false;
if (config.bss[0].ifname != old_config.bss[0].ifname)
return false;