From: Felix Fietkau Date: Fri, 29 Aug 2025 14:54:36 +0000 (+0200) Subject: wifi-scripts: ucode: unconditionally call hostapd/supplicant setup X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=79f8a83eb9330630c02e1c1ab1bf76ddcbda4ae2;p=openwrt%2Fstaging%2Fnbd.git wifi-scripts: ucode: unconditionally call hostapd/supplicant setup Ensure that interfaces can be deleted properly Signed-off-by: Felix Fietkau --- diff --git a/package/network/config/wifi-scripts/files-ucode/lib/netifd/wireless/mac80211.sh b/package/network/config/wifi-scripts/files-ucode/lib/netifd/wireless/mac80211.sh index 8ef2dd9b2b..e5d756d988 100755 --- a/package/network/config/wifi-scripts/files-ucode/lib/netifd/wireless/mac80211.sh +++ b/package/network/config/wifi-scripts/files-ucode/lib/netifd/wireless/mac80211.sh @@ -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)}`);