]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
wifi-scripts: fix VLAN key for service-injected wifi-iface
authorFelix Fietkau <nbd@nbd.name>
Fri, 10 Jul 2026 12:44:25 +0000 (14:44 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 16 Jul 2026 09:50:22 +0000 (11:50 +0200)
Service data VLANs were stored under vif_data.vlans, but every consumer
reads vif.vlan, so per-VLAN config from a procd service was silently
dropped. Use the singular key, matching the adjacent station handling.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/config/wifi-scripts/files/lib/netifd/wireless.uc

index 41f48848e48ece61ee29d7d9bef7df33541e039d..d26e4efbcd111ab4e39d4c8da9092d5ebdfde60d 100644 (file)
@@ -337,7 +337,7 @@ function config_init(uci)
                                                                sta: []
                                                        };
                                                        if (vif.vlans)
-                                                               vif_data.vlans = vif.vlans;
+                                                               vif_data.vlan = vif.vlans;
                                                        if (vif.stations)
                                                                vif_data.sta = vif.stations;
                                                        push(dev.vif, vif_data);