wifi-scripts: ucode: unconditionally call hostapd/supplicant setup

Ensure that interfaces can be deleted properly

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2025-08-29 16:54:36 +02:00
parent e116b423b8
commit 79f8a83eb9

View File

@ -290,11 +290,8 @@ function setup() {
wdev_data[v.config.ifname] = config;
}
if (length(supplicant_data) > 0)
supplicant.setup(supplicant_data, data);
if (has_ap)
hostapd.setup(data);
supplicant.setup(supplicant_data, data);
hostapd.setup(data);
system(`ucode /usr/share/hostap/wdev.uc ${data.phy}${data.phy_suffix} set_config '${printf("%J", wdev_data)}' ${join(' ', active_ifnames)}`);