From 1a79345b5dd9ab4a489698d303303693ca16c7d3 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 30 Sep 2025 16:44:01 +0200 Subject: [PATCH] hostapd: skip add call on already present MLD interfaces Avoid tearing down running interfaces Signed-off-by: Felix Fietkau --- package/network/services/hostapd/files/hostapd.uc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/network/services/hostapd/files/hostapd.uc b/package/network/services/hostapd/files/hostapd.uc index 1ec2bb6945..4bd53d6efe 100644 --- a/package/network/services/hostapd/files/hostapd.uc +++ b/package/network/services/hostapd/files/hostapd.uc @@ -1008,6 +1008,7 @@ function mld_add_bss(name, data, phy_list, i) if (!config.phy) return; + hostapd.printf(`Add MLD interface ${name}`); wdev_remove(name); let phydev = phy_list[config.phy]; if (!phydev) { @@ -1111,7 +1112,8 @@ function mld_set_config(config) // add new interfaces hostapd.data.mld = new_mld; for (let name, data in new_mld) - mld_add_bss(name, data, phy_list); + if (!data.ifname) + mld_add_bss(name, data, phy_list); if (!new_config) return;