mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 05:38:00 +00:00
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:
parent
5ae3b195a1
commit
9b56c27a8a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user