diff options
author | Christian Breunig <christian@breunig.cc> | 2023-09-03 08:37:31 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-09-03 08:37:31 +0200 |
commit | 6ff0e8f6a024ee66fb30df537e48311285d71d9c (patch) | |
tree | 9e1034cef15649b29d9fb27c6b1550bdba352f7a /data/templates | |
parent | 6896aabb6406f511486e860ae5e2873435ace77b (diff) | |
download | vyos-1x-6ff0e8f6a024ee66fb30df537e48311285d71d9c.tar.gz vyos-1x-6ff0e8f6a024ee66fb30df537e48311285d71d9c.zip |
wireless: T5540: use elif in Jinja2 template for VHT channel width
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/wifi/hostapd.conf.j2 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/data/templates/wifi/hostapd.conf.j2 b/data/templates/wifi/hostapd.conf.j2 index 93005f3d4..c3f32da72 100644 --- a/data/templates/wifi/hostapd.conf.j2 +++ b/data/templates/wifi/hostapd.conf.j2 @@ -342,8 +342,7 @@ vht_oper_chwidth={{ capabilities.vht.channel_set_width }} {% set output = namespace(value='') %} {% if capabilities.vht.channel_set_width is vyos_defined('2') %} {% set output.value = output.value ~ '[VHT160]' %} -{% endif %} -{% if capabilities.vht.channel_set_width is vyos_defined('3') %} +{% elif capabilities.vht.channel_set_width is vyos_defined('3') %} {% set output.value = output.value ~ '[VHT160-80PLUS80]' %} {% endif %} {% if capabilities.vht.stbc.tx is vyos_defined %} |