summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-11 20:36:26 +0200
committerGitHub <noreply@github.com>2020-04-11 20:36:26 +0200
commit143d292209b6ebe24f90667f2d5edd0216151163 (patch)
tree60a9d76824d31d138cbd3a9cb5286570bb6b5f20 /src/conf_mode
parent7ae606605e2f86288e0c76f440872d9eb2fcc46c (diff)
parent3f93be7ffa3361110fdc2ae839c1a197cc2d6ce2 (diff)
downloadvyos-1x-143d292209b6ebe24f90667f2d5edd0216151163.tar.gz
vyos-1x-143d292209b6ebe24f90667f2d5edd0216151163.zip
Merge pull request #330 from alainlamar/T2213
wireless: T2213: bugfix: Use ieee80211n and ieee80211ac if require_vht not set
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/interfaces-wireless.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-wireless.py b/src/conf_mode/interfaces-wireless.py
index 07c4537b4..98bb9bafc 100755
--- a/src/conf_mode/interfaces-wireless.py
+++ b/src/conf_mode/interfaces-wireless.py
@@ -570,6 +570,9 @@ def verify(wifi):
if not wifi['phy']:
raise ConfigError('You must specify physical-device')
+ if not wifi['mode']:
+ raise ConfigError('You must specify a WiFi mode')
+
if wifi['op_mode'] == 'ap':
c = Config()
if not c.exists('system wifi-regulatory-domain'):