From: Felix Fietkau Date: Fri, 10 Jul 2026 12:43:53 +0000 (+0200) Subject: hostapd: ucode: fix dead reload-all check in mld_set_config X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a58efdb5d1c63ff242fe67da1ee3b15e5752e9d;p=thirdparty%2Fopenwrt.git hostapd: ucode: fix dead reload-all check in mld_set_config new_config was tested against the freshly emptied new_mld object, so it was always false and the reload-all-interfaces block never ran. Test the incoming config instead, so the first MLD config re-adds the spliced-out MLD BSSes. Signed-off-by: Felix Fietkau --- diff --git a/package/network/services/hostapd/files/hostapd.uc b/package/network/services/hostapd/files/hostapd.uc index 98e8dc9f840..a923365156d 100644 --- a/package/network/services/hostapd/files/hostapd.uc +++ b/package/network/services/hostapd/files/hostapd.uc @@ -1248,7 +1248,7 @@ function mld_set_config(config) let prev_mld = { ...hostapd.data.mld }; let new_mld = {}; let phy_list = {}; - let new_config = !length(prev_mld) && length(new_mld); + let new_config = !length(prev_mld) && length(config); hostapd.printf(`Set MLD config: ${keys(config)}`);