summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlain Lamar <alain_lamar@yahoo.de>2020-04-04 18:48:43 +0200
committerAlain Lamar <alain_lamar@yahoo.de>2020-04-04 18:48:43 +0200
commit31737597c424793eee03f92fa76908b1251d3724 (patch)
tree22b579b56ed510c3ab75ad3b5750f2583a214e5f
parent3e7fe69a6b03b053098171411e286ba515838842 (diff)
downloadvyos-1x-31737597c424793eee03f92fa76908b1251d3724.tar.gz
vyos-1x-31737597c424793eee03f92fa76908b1251d3724.zip
wireless: T2211: bugfix: vht_oper_chwidth was not set in hostapd config
When operating in certain modes, channel width must be configured for WiFi interfaces. The hostapd config does this in two separate lines which must both be configured: vht_oper_chwidth=(0|1|2|3) vht_capab+=[VHT160] for 160MHz in one block or vht_capab+=[VHT160-80PLUS80] for 160MHz as 2x 80MHz in two separate blocks.
-rwxr-xr-xsrc/conf_mode/interfaces-wireless.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/conf_mode/interfaces-wireless.py b/src/conf_mode/interfaces-wireless.py
index b6e62b0aa..3d62897aa 100755
--- a/src/conf_mode/interfaces-wireless.py
+++ b/src/conf_mode/interfaces-wireless.py
@@ -239,6 +239,10 @@ uapsd_advertisement_enabled=1
require_ht=1
{% endif %}
+{%- if cap_vht_chan_set_width -%}
+vht_oper_chwidth={{ cap_vht_chan_set_width }}
+{%- endif -%}
+
# vht_capab: VHT capabilities (list of flags)
#
# vht_max_mpdu_len: [MAX-MPDU-7991] [MAX-MPDU-11454]
@@ -369,10 +373,6 @@ vht_capab=
{%- endif -%}
{%- if cap_vht_chan_set_width -%}
-[MAX-A-MPDU-LEN-EXP{{ cap_vht_max_mpdu_exp }}]
-{%- endif -%}
-
-{%- if cap_vht_chan_set_width -%}
{%- if '2' in cap_vht_chan_set_width -%}
[VHT160]
{%- elif '3' in cap_vht_chan_set_width -%}
@@ -797,7 +797,7 @@ default_config_data = {
'cap_vht_beamform' : '',
'cap_vht_center_freq_1' : '',
'cap_vht_center_freq_2' : '',
- 'cap_vht_chan_set_width' : '',
+ 'cap_vht_chan_set_width' : '0',
'cap_vht_ldpc' : False,
'cap_vht_link_adaptation' : False,
'cap_vht_max_mpdu_exp' : '',