1
0
Fork 0
forked from mirror/openwrt

wifi-scripts: ucode: fix dynamic_vlan value handling

The dynamic_vlan has values 0 (disabled), 1 (optional) and 2 (required).

Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
This commit is contained in:
Oldřich Jedlička 2025-09-01 23:57:33 +02:00 committed by Felix Fietkau
parent 2146f5c31f
commit 1756dddb9f
2 changed files with 4 additions and 3 deletions

View file

@ -293,8 +293,10 @@
"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",

View 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':