mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-14 23:09:45 +01:00
hostapd: skip add call on already present MLD interfaces
Some checks are pending
Build all core packages / Build all core packages for selected target (push) Waiting to run
Some checks are pending
Build all core packages / Build all core packages for selected target (push) Waiting to run
Avoid tearing down running interfaces Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
996e4cb506
commit
1a79345b5d
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue