schema: wifi steering should never be allowed on lan

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2021-06-03 08:58:44 +02:00
parent 88f3133ad6
commit c0c7214bc2
4 changed files with 1 additions and 24 deletions

View File

@@ -3,7 +3,7 @@ add usteer usteer
{% if (wifi_steering.mode == 'local' && length(ssids)): %}
# Wifi-Steering service configuration
set usteer.@usteer[-1].network={{ s(wifi_steering.network) }}
set usteer.@usteer[-1].network='up'
set usteer.@usteer[-1].key={{ s(wifi_steering.key) }}
set usteer.@usteer[-1].assoc_steering={{ b(wifi_steering.assoc_steering) }}
set usteer.@usteer[-1].min_snr={{ wifi_steering.required_snr }}

View File

@@ -11,11 +11,6 @@ properties:
- cloud
examples:
- local
network:
description:
The network that shall be used to communicate with the other peers.
type: string
default: upstream
assoc-steering:
description:
Allow rejecting assoc requests for steering purposes.

View File

@@ -3707,20 +3707,6 @@ function instantiateServiceWifiSteering(location, value, errors) {
obj.mode = parseMode(location + "/mode", value["mode"], errors);
}
function parseNetwork(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
return value;
}
if (exists(value, "network")) {
obj.network = parseNetwork(location + "/network", value["network"], errors);
}
else {
obj.network = "upstream";
}
function parseAssocSteering(location, value, errors) {
if (type(value) != "bool")
push(errors, [ location, "must be of type boolean" ]);

View File

@@ -1445,10 +1445,6 @@
"local"
]
},
"network": {
"type": "string",
"default": "upstream"
},
"assoc-steering": {
"type": "boolean",
"default": false