summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-12-20 14:34:22 +0100
committerChristian Poessinger <christian@poessinger.com>2020-12-20 14:34:22 +0100
commitd60288741aab884d5a44f431682dd22ab52eefcd (patch)
tree761e275676512e77b432a94ba364afb29f88e4c5
parent466452c1b9f5d497dadc0ea45317ef14407c6c84 (diff)
downloadvyos-1x-d60288741aab884d5a44f431682dd22ab52eefcd.tar.gz
vyos-1x-d60288741aab884d5a44f431682dd22ab52eefcd.zip
wifi: T517: physical-interface and channel now default to phy0 and 0
This change makes it easier for first time users as they do not need to configure that much options. Less hazzle, better user experience.
-rw-r--r--interface-definitions/interfaces-wireless.xml.in12
1 files changed, 9 insertions, 3 deletions
diff --git a/interface-definitions/interfaces-wireless.xml.in b/interface-definitions/interfaces-wireless.xml.in
index ebcfee95c..ce211b9ce 100644
--- a/interface-definitions/interfaces-wireless.xml.in
+++ b/interface-definitions/interfaces-wireless.xml.in
@@ -429,19 +429,24 @@
</node>
<leafNode name="channel">
<properties>
- <help>Wireless radio channel (use 0 for ACS auto channel selection)</help>
+ <help>Wireless radio channel (default: 0)</help>
+ <valueHelp>
+ <format>0</format>
+ <description>Automatic Channel Selection (ACS)</description>
+ </valueHelp>
<valueHelp>
<format>&lt;1-14&gt;</format>
<description>2.4Ghz (802.11 b/g/n) Channel</description>
</valueHelp>
<valueHelp>
- <format>&lt;0,34-173&gt;</format>
+ <format>&lt;34-173&gt;</format>
<description>5Ghz (802.11 a/h/j/n/ac) Channel</description>
</valueHelp>
<constraint>
<validator name="numeric" argument="--range 0-0 --range 1-14 --range 34-173"/>
</constraint>
</properties>
+ <defaultValue>0</defaultValue>
</leafNode>
<leafNode name="country-code">
<properties>
@@ -557,7 +562,7 @@
</leafNode>
<leafNode name="physical-device">
<properties>
- <help>Wireless physical device</help>
+ <help>Wireless physical device (default: phy0)</help>
<completionHelp>
<script>${vyos_completion_dir}/list_wireless_phys.sh</script>
</completionHelp>
@@ -565,6 +570,7 @@
<validator name="wireless-phy"/>
</constraint>
</properties>
+ <defaultValue>phy0</defaultValue>
</leafNode>
<leafNode name="reduce-transmit-power">
<properties>