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>
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)}`);