wifi-scripts: fix handling hotplug-added wireless vifs

Pass the correct ifname and state

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau
2025-08-03 21:52:06 +02:00
parent 8444891064
commit 7d570a489b
2 changed files with 3 additions and 3 deletions

View File

@ -532,7 +532,7 @@ function hotplug(name, add)
data.type != "vif" && data.type != "vlan")
continue;
handle_link(dev, data, up);
handle_link(dev, data, add);
}
}

View File

@ -241,11 +241,11 @@ function check_interfaces()
dev.check();
}
function hotplug(name, add)
function hotplug(ifname, add)
{
for (let name, dev in wireless.devices)
if (dev.autostart)
dev.hotplug(name, add);
dev.hotplug(ifname, add);
}
const network_config_attr = {