From 247595eac1698ff6bf4d2d2d327369a860c42cf6 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 10 Jul 2026 12:26:31 +0200 Subject: [PATCH] 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 --- package/network/services/hostapd/files/hostapd.uc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/package/network/services/hostapd/files/hostapd.uc b/package/network/services/hostapd/files/hostapd.uc index 1258f2d52f..943b881049 100644 --- a/package/network/services/hostapd/files/hostapd.uc +++ b/package/network/services/hostapd/files/hostapd.uc @@ -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")