The dynamic_vlan has values 0 (disabled), 1 (optional) and 2 (required). Signed-off-by: Oldřich Jedlička <[email protected]>
@@ -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",
@@ -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':