Lift the #frequency and #channel_owned_by_sta markers (emitted by the
config generator) onto config.radio and keep them out of radio.data so
they do not perturb the radio comparison. These feed the config-driven
channel switch handling added next.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
continue;
}
+ if (val[0] == "#frequency") {
+ config.radio.frequency = int(val[1]);
+ continue;
+ }
+
+ if (val[0] == "#channel_follow") {
+ config.radio.channel_follow = int(val[1]) == 1;
+ continue;
+ }
+
if (val[0] == "#num_global_macaddr")
config[substr(val[0], 1)] = int(val[1]);
else if (val[0] == "#macaddr_base")