summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2025-07-09 10:12:40 +0000
committerFelix Fietkau2025-07-09 10:14:30 +0000
commitdb763342af58ac1b572cef2a5943896c6464bbb9 (patch)
tree02af20aa471051b175089251276e1f8bc2a35d6c
parent097700771c08f6f9a1864f9ded29e0590851b419 (diff)
downloadopenwrt-db763342af58ac1b572cef2a5943896c6464bbb9.tar.gz
hostapd: ignore comment lines for hash comparison
Fixes spurious unnecessary bss restarts Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--package/network/services/hostapd/files/hostapd.uc6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/network/services/hostapd/files/hostapd.uc b/package/network/services/hostapd/files/hostapd.uc
index b7ef22ce6f..3e941ae415 100644
--- a/package/network/services/hostapd/files/hostapd.uc
+++ b/package/network/services/hostapd/files/hostapd.uc
@@ -412,7 +412,11 @@ function bss_reload_rxkhs(bss, config, old_config)
function remove_file_fields(config)
{
- return filter(config, (line) => !hostapd.data.file_fields[split(line, "=")[0]]);
+ return filter(config, (line) =>
+ !match(line, /^\s*$/) &&
+ !match(line, /^\s*#/) &&
+ !hostapd.data.file_fields[split(line, "=")[0]]
+ );
}
function bss_remove_file_fields(config)