wifi-scripts: ucode: fix dynamic_vlan value handling
authorOldřich Jedlička <[email protected]>
Mon, 1 Sep 2025 21:57:33 +0000 (23:57 +0200)
committerFelix Fietkau <[email protected]>
Tue, 2 Sep 2025 07:33:19 +0000 (09:33 +0200)
The dynamic_vlan has values 0 (disabled), 1 (optional) and 2 (required).

Signed-off-by: Oldřich Jedlička <[email protected]>
package/network/config/wifi-scripts/files-ucode/usr/share/schema/wireless.wifi-iface.json
package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/ap.uc

index de1962c14ef5f436d379796d89ede0760d735a39..d7efe4751622f6b756c6bff811b859d1c978697d 100644 (file)
                        "type": "boolean"
                },
                "dynamic_vlan": {
-                       "description": "Allow RADIUS authentication server to decide which VLAN is used for the stations",
-                       "type": "boolean"
+                       "description": "Allow RADIUS authentication server to decide which VLAN is used for the stations (0 = disabled, 1 = optional, 2 = required)",
+                       "type": "number",
+                       "enum": [ 0, 1, 2 ],
+                       "default": 0
                },
                "eap_reauth_period": {
                        "description": "EAP reauthentication period in seconds",
index bbd907c234362e558529b0f2843a279bc03cdf1c..6ae53df3777b3a6aa66836ddfc4bc135a611925a 100644 (file)
@@ -131,7 +131,6 @@ function iface_auth_type(config) {
 
                set_default(config, 'wpa_psk_file', `/var/run/hostapd-${config.ifname}.psk`);
                touch_file(config.wpa_psk_file);
-               set_default(config, 'dynamic_vlan', 0);
                break;
 
        case 'eap':