From 6ff0e8f6a024ee66fb30df537e48311285d71d9c Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 3 Sep 2023 08:37:31 +0200 Subject: wireless: T5540: use elif in Jinja2 template for VHT channel width --- data/templates/wifi/hostapd.conf.j2 | 3 +-- 1 file changed, 1 insertion(+), 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 %} -- cgit v1.2.3