From: Felix Fietkau Date: Wed, 9 Jul 2025 10:12:40 +0000 (+0200) Subject: hostapd: ignore comment lines for hash comparison X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db763342af58ac1b572cef2a5943896c6464bbb9;p=thirdparty%2Fopenwrt.git hostapd: ignore comment lines for hash comparison Fixes spurious unnecessary bss restarts Signed-off-by: Felix Fietkau --- diff --git a/package/network/services/hostapd/files/hostapd.uc b/package/network/services/hostapd/files/hostapd.uc index b7ef22ce6f0..3e941ae415f 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)