[openwrt/openwrt] hostapd: ignore comment lines for hash comparison
LEDE Commits
lede-commits at lists.infradead.org
Wed Jul 9 03:14:35 PDT 2025
nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/db763342af58ac1b572cef2a5943896c6464bbb9
commit db763342af58ac1b572cef2a5943896c6464bbb9
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Wed Jul 9 12:12:40 2025 +0200
hostapd: ignore comment lines for hash comparison
Fixes spurious unnecessary bss restarts
Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
package/network/services/hostapd/files/hostapd.uc | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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)
More information about the lede-commits
mailing list