projects
/
openwrt
/
staging
/
nbd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
996e4cb
)
hostapd: skip add call on already present MLD interfaces
author
Felix Fietkau
<
[email protected]
>
Tue, 30 Sep 2025 14:44:01 +0000
(16:44 +0200)
committer
Felix Fietkau
<
[email protected]
>
Tue, 30 Sep 2025 14:44:20 +0000
(16:44 +0200)
Avoid tearing down running interfaces
Signed-off-by: Felix Fietkau <
[email protected]
>
package/network/services/hostapd/files/hostapd.uc
patch
|
blob
|
history
diff --git
a/package/network/services/hostapd/files/hostapd.uc
b/package/network/services/hostapd/files/hostapd.uc
index 1ec2bb6945cd6d50db74bae732b6491ec9498007..4bd53d6efe1b37073fddfe1fa6edd94111e5c97e 100644
(file)
--- 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;