wifi-scripts: ucode: change default behaviour of the vlan_no_bridge option
authorJohn Crispin <john@phrozen.org>
Wed, 11 Dec 2024 13:42:47 +0000 (14:42 +0100)
committerJohn Crispin <john@phrozen.org>
Wed, 11 Dec 2024 13:43:25 +0000 (14:43 +0100)
Signed-off-by: John Crispin <john@phrozen.org>
package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/ap.uc

index 8db3fc34b31530eee8947d463d64f0fa4f7f1617..d6ca3b5dd26f7b02612234d84e5b17ec18102915 100644 (file)
@@ -285,8 +285,8 @@ function iface_vlan(interface, config, vlans) {
 
        if (!config.vlan_possible || !config.dynamic_vlan)
                return;
-
-       config.vlan_no_bridge = !config.vlan_bridge;
+       
+       set_default(config, 'vlan_no_bridge', !config.vlan_bridge);
 
        append_vars(config, [
                'dynamic_vlan', 'vlan_naming', 'vlan_bridge', 'vlan_no_bridge',