add 'none' mode to wifi-steering

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2022-10-02 09:18:03 +02:00
parent abeb71255c
commit 1784f7ef0e
4 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,7 @@
{% let enable = (wifi_steering.mode == 'local' && length(ssids)) %}
{% services.set_enabled("usteer", enable) %}
{% if (!enable) return %}
{% let name = ethernet.find_interface("upstream", 0) %}
{% let name = wifi_steering.mode == 'local' ? ethernet.find_interface("upstream", 0) : '' %}
# Wifi-Steering service configuration
add usteer usteer

View File

@@ -8,7 +8,7 @@ properties:
type: string
enum:
- local
- cloud
- none
examples:
- local
assoc-steering:

View File

@@ -6166,8 +6166,8 @@ function instantiateServiceWifiSteering(location, value, errors) {
if (type(value) != "string")
push(errors, [ location, "must be of type string" ]);
if (!(value in [ "local", "cloud" ]))
push(errors, [ location, "must be one of \"local\" or \"cloud\"" ]);
if (!(value in [ "local", "none" ]))
push(errors, [ location, "must be one of \"local\" or \"none\"" ]);
return value;
}

View File

@@ -2287,7 +2287,7 @@
"type": "string",
"enum": [
"local",
"cloud"
"none"
],
"examples": [
"local"