Page MenuHomeVyOS Platform

vyos-1x: VHT channel width not set accordingly
Closed, ResolvedPublicBUG

Description

Defining the VHT channel width requires to set multiple values in the hostapd config file as detailed here:
https://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf

# 0 = 20 or 40 MHz operating Channel width
# 1 = 80 MHz channel width
# 2 = 160 MHz channel width
# 3 = 80+80 MHz channel width
#vht_oper_chwidth=1

# vht_capab: VHT capabilities (list of flags)
# [...]
# supported_chan_width: [VHT160] [VHT160-80PLUS80]
# Indicates supported Channel widths
# 0 = 160 MHz & 80+80 channel widths are not supported (default)
# 1 = 160 MHz channel width is supported
# 2 = 160 MHz & 80+80 channel widths are supported
# 3 = reserved

This command needs to set all of them accordingly.

set interfaces wireless wlanX capabilities vht channel-set-width <TAB>
Possible completions:
   0            20 or 40 MHz channel width (default)
   1            80 MHz channel width
   2            160 MHz channel width
   3            80+80 MHz channel width

This worked in VyOS 1.2 (self-built at 201808072059).

Details

Difficulty level
Normal (likely a few hours)
Version
vyos-1x commit id: 551e41895953bb291fc10bdb9ba2a07e83310070
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

This is the logic from my old wireless-hostapd.pl file:

my $vht_oper_chwidth = $config->returnValue("channel-set-width");
if ($vht_oper_chwidth) {
    print "vht_oper_chwidth=$vht_oper_chwidth\n";
    switch($vht_oper_chwidth) {
        case "0"      { ; }
        case "1"      { ; }
        case "2"      { $vht_capab .= "[VHT160]"; }
        case "3"      { $vht_capab .= "[VHT160-80PLUS80]"; }
        else          { die "$level capabilities vht channel-set-width : Invalid value.\n"; }
    }
}
c-po assigned this task to alainlamar.
erkin set Issue type to Bug (incorrect behavior).Aug 30 2021, 7:44 AM
erkin removed a subscriber: Active contributors.