From: Felix Fietkau Date: Fri, 10 Jul 2026 12:52:38 +0000 (+0200) Subject: hostapd: ucode: keep comment lines out of the config comparison data X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3cbf551430316efcf0daad3a1786eed4ce1da3b;p=thirdparty%2Fopenwrt.git hostapd: ucode: keep comment lines out of the config comparison data The generator emits a '# Setup interface: ' comment before each interface, so the first one landed in config.radio.data and made the radio comparison depend on the first BSS's ifname: renaming it forced a full radio restart instead of the rename path. Skip comment lines when parsing radio.data/bss.data. Signed-off-by: Felix Fietkau --- diff --git a/package/network/services/hostapd/files/hostapd.uc b/package/network/services/hostapd/files/hostapd.uc index a923365156d..919c05fcc2e 100644 --- a/package/network/services/hostapd/files/hostapd.uc +++ b/package/network/services/hostapd/files/hostapd.uc @@ -1084,6 +1084,9 @@ function iface_load_config(phy, radio, filename) if (!val[0]) continue; + if (substr(line, 0, 2) == "# ") + continue; + if (val[0] == "interface") { bss = config_add_bss(config, val[1]); break; @@ -1124,6 +1127,9 @@ function iface_load_config(phy, radio, filename) if (!val[0]) continue; + if (substr(line, 0, 2) == "# ") + continue; + if (val[0] == "bssid") { bss.bssid = lc(val[1]); continue;