]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
hostapd: ucode: fix dead reload-all check in mld_set_config
authorFelix Fietkau <nbd@nbd.name>
Fri, 10 Jul 2026 12:43:53 +0000 (14:43 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 16 Jul 2026 09:50:22 +0000 (11:50 +0200)
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 <nbd@nbd.name>
package/network/services/hostapd/files/hostapd.uc

index 98e8dc9f8403caf498ca8db1b7bfbfac2dc6f6db..a923365156ded07a576c67f0d8a492b7f8cc2cff 100644 (file)
@@ -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)}`);