mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-08 05:32:09 -05:00
wifi-scripts: ucode: fix wifi-vlan "network" option not working
The call to netifd.set_vlan(...) had an incorrect argument order. It should be (interface, ifname, vlan) not (interface, vlan, ifname). This prevented wifi-vlan's "network" option from working as netifd was not able to find the wifi-vlan section. Fixes: https://github.com/openwrt/openwrt/issues/20705 Fixes: https://github.com/openwrt/openwrt/issues/20911 Signed-off-by: Rany Hany <rany_hany@riseup.net> Link: https://github.com/openwrt/openwrt/pull/20918 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
31f5fc8fea
commit
63c146a464
@ -288,7 +288,7 @@ function iface_vlan(interface, config, vlans) {
|
||||
if (vlan.config.name && vlan.config.vid) {
|
||||
let ifname = `${config.ifname}-${vlan.config.name}`;
|
||||
file.write(`${vlan.config.vid} ${ifname}\n`);
|
||||
netifd.set_vlan(interface, k, ifname);
|
||||
netifd.set_vlan(interface, ifname, k);
|
||||
}
|
||||
file.close();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user