summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2025-09-30 14:44:01 +0000
committerFelix Fietkau2025-09-30 14:44:20 +0000
commit1a79345b5dd9ab4a489698d303303693ca16c7d3 (patch)
tree15611a9bea35313634e862ba3ea083c91af6ecf8
parent996e4cb5066d38fea862b0cc265235a2bc1add03 (diff)
downloadopenwrt-1a79345b5dd9ab4a489698d303303693ca16c7d3.tar.gz
hostapd: skip add call on already present MLD interfaces
Avoid tearing down running interfaces Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--package/network/services/hostapd/files/hostapd.uc4
1 files changed, 3 insertions, 1 deletions
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;