]> git.ipfire.org Git - thirdparty/hostap.git/commit
hw_features: Fix check of supported 802.11ac channel width
authorSven Eckelmann <sven.eckelmann@openmesh.com>
Fri, 9 Jun 2017 09:39:51 +0000 (11:39 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 18 Jul 2017 10:39:46 +0000 (13:39 +0300)
commitb0fc2ef3a37eb753a773c4e205ec5c2f787e5b38
treed5c12d32e38cc4a94075113cf15d5d9e0f289a44
parent9a6e2a5edee277f260ce2287c93d497665f556a6
hw_features: Fix check of supported 802.11ac channel width

The two channel width bits in the VHT capability field can be decoded in
following values (IEEE Std 802.11ac-2013 8.4.2.160.2 VHT Capabilities
Info field):

 * 0: no 160 or 80+80 MHz support
 * 1: 160 MHz support
 * 2: 160 and 80+80 MHz support
 * 3: (reserved)

The check must therefore not be done bitwise but instead it must checked
whether the capabilities announced by the driver are at least the ones
requested by the user.

Fixes: c781eb842852 ("hostapd: Verify VHT capabilities are supported by driver")
Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
src/common/hw_features_common.c
src/common/ieee802_11_defs.h