summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/conf_mode/interfaces-wireless.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-wireless.py b/src/conf_mode/interfaces-wireless.py
index 3b270a064..9cfc0bfc5 100755
--- a/src/conf_mode/interfaces-wireless.py
+++ b/src/conf_mode/interfaces-wireless.py
@@ -1255,6 +1255,10 @@ def verify(wifi):
if wifi['sec_wpa'] and not (wifi['sec_wpa_passphrase'] or wifi['sec_wpa_radius']):
raise ConfigError('Misssing WPA key or RADIUS server')
+ for radius in wifi['sec_wpa_radius']:
+ if not radius['key']:
+ raise ConfigError('Misssing RADIUS shared secret key for server: {}'.format(radius['server']))
+
conf = Config()
if not conf.exists('system wifi-regulatory-domain'):
raise ConfigError('Wireless regulatory domain is mandatory.\n' \