[openwrt/openwrt] wifi-scripts: ucode: unconditionally call hostapd/supplicant setup
LEDE Commits
lede-commits at lists.infradead.org
Fri Aug 29 07:55:00 PDT 2025
nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/79f8a83eb9330630c02e1c1ab1bf76ddcbda4ae2
commit 79f8a83eb9330630c02e1c1ab1bf76ddcbda4ae2
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Fri Aug 29 16:54:36 2025 +0200
wifi-scripts: ucode: unconditionally call hostapd/supplicant setup
Ensure that interfaces can be deleted properly
Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
.../wifi-scripts/files-ucode/lib/netifd/wireless/mac80211.sh | 7 ++-----
1 file 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)}`);
More information about the lede-commits
mailing list