wifi-scripts: ucode: fix wifi-vlan "network" option not working
authorRany Hany <[email protected]>
Mon, 24 Nov 2025 15:00:57 +0000 (15:00 +0000)
committerRobert Marko <[email protected]>
Tue, 25 Nov 2025 10:44:29 +0000 (11:44 +0100)
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 <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20918
Signed-off-by: Robert Marko <[email protected]>
package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/ap.uc

index 1f1e27dbee2af6f1b226ec76b8dac8083f1b6c9f..00aff02661f3eed30f8439cb9452c9a20afd9d93 100644 (file)
@@ -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();