summaryrefslogtreecommitdiff
path: root/data/templates/wifi/wpa_supplicant.conf.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-10 20:15:54 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-10 20:55:35 +0200
commit264f86db9b7a965f6f3f096f70ea5f4f317ebebd (patch)
tree49459637afb9bc3d532898d7ee0001ffc64d2d16 /data/templates/wifi/wpa_supplicant.conf.tmpl
parent653d2fbce855b85aabb3d8cb6f8473541a0909f1 (diff)
downloadvyos-1x-264f86db9b7a965f6f3f096f70ea5f4f317ebebd.tar.gz
vyos-1x-264f86db9b7a965f6f3f096f70ea5f4f317ebebd.zip
wifi: T4333: migrate to new vyos_defined Jinja2 test
Diffstat (limited to 'data/templates/wifi/wpa_supplicant.conf.tmpl')
-rw-r--r--data/templates/wifi/wpa_supplicant.conf.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/wifi/wpa_supplicant.conf.tmpl b/data/templates/wifi/wpa_supplicant.conf.tmpl
index 20b4f7976..56cd35a35 100644
--- a/data/templates/wifi/wpa_supplicant.conf.tmpl
+++ b/data/templates/wifi/wpa_supplicant.conf.tmpl
@@ -18,7 +18,7 @@ network={
# this will add latency to scanning, so enable this only when needed)
scan_ssid=1
-{% if security is defined and security.wpa is defined and security.wpa.passphrase is defined %}
+{% if security.wpa.passphrase is vyos_defined %}
# ieee80211w: whether management frame protection is enabled
# 0 = disabled (default unless changed with the global pmf parameter)
# 1 = optional
@@ -59,7 +59,7 @@ network={
# OWE = Opportunistic Wireless Encryption (a.k.a. Enhanced Open)
# DPP = Device Provisioning Protocol
# If not set, this defaults to: WPA-PSK WPA-EAP
-{% if security.wpa.mode is defined and security.wpa.mode == 'wpa3' %}
+{% if security.wpa.mode is vyos_defined('wpa3') %}
key_mgmt=SAE
{% else %}
key_mgmt=WPA-PSK WPA-PSK-SHA256