diff options
| author | Felix Fietkau | 2025-08-29 14:54:36 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2025-08-29 14:54:37 +0000 |
| commit | 79f8a83eb9330630c02e1c1ab1bf76ddcbda4ae2 (patch) | |
| tree | 197dde793c6c9fd4d62ecd911f668052f0ccccf6 | |
| parent | e116b423b8437b903a4b7d4bd559f2a314c2be5a (diff) | |
| download | openwrt-79f8a83eb9330630c02e1c1ab1bf76ddcbda4ae2.tar.gz | |
wifi-scripts: ucode: unconditionally call hostapd/supplicant setup
Ensure that interfaces can be deleted properly
Signed-off-by: Felix Fietkau <nbd@nbd.name>
| -rwxr-xr-x | package/network/config/wifi-scripts/files-ucode/lib/netifd/wireless/mac80211.sh | 7 |
1 files changed, 2 insertions, 5 deletions
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)}`); |