From: Felix Fietkau Date: Fri, 10 Jul 2026 10:26:31 +0000 (+0200) Subject: hostapd: ucode: parse frequency and STA-channel radio markers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=247595eac1698ff6bf4d2d2d327369a860c42cf6;p=thirdparty%2Fopenwrt.git 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 --- diff --git a/package/network/services/hostapd/files/hostapd.uc b/package/network/services/hostapd/files/hostapd.uc index 1258f2d52f3..943b8810492 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")