The generator emits a '# Setup interface: <ifname>' 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 <nbd@nbd.name>
if (!val[0])
continue;
+ if (substr(line, 0, 2) == "# ")
+ continue;
+
if (val[0] == "interface") {
bss = config_add_bss(config, val[1]);
break;
if (!val[0])
continue;
+ if (substr(line, 0, 2) == "# ")
+ continue;
+
if (val[0] == "bssid") {
bss.bssid = lc(val[1]);
continue;