hostapd: ucode: parse frequency and STA-channel radio markers

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>
This commit is contained in:
Felix Fietkau 2026-07-10 12:26:31 +02:00
parent a2c5be2783
commit 247595eac1

View file

@ -935,6 +935,16 @@ function iface_load_config(phy, radio, filename)
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")