hostapd: ignore comment lines for hash comparison

Fixes spurious unnecessary bss restarts

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2025-07-09 12:12:40 +02:00
parent 097700771c
commit db763342af

View file

@ -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)