]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/drivers/driver_nl80211.c
nl80211: Don't force VHT channel definition with HE
authorSven Eckelmann <seckelmann@datto.com>
Mon, 1 Jul 2019 13:34:08 +0000 (15:34 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 11 Aug 2019 15:04:26 +0000 (18:04 +0300)
commitdf4f959988b6b3fe9c9e4c8476af247b98633941
treef0ba1f31bf2d5b9b667cdb7af871e6dcd6e08b6c
parentdd0153fced53b1dabe63278c746db9deb1a51512
nl80211: Don't force VHT channel definition with HE

HE (802.11ax) is also supported on 2.4 GHz. And the 2.4 GHz band isn't
supposed to use VHT operations. Some codepaths in wpa_supplicant will
therefore not initialize the freq->bandwidth or the freq->center_freq1/2
members. As a result, the nl80211_put_freq_params() will directly return
an error (-1) or the kernel will return an error due to the invalid
channel definition.

Instead, the channel definitions should be created based on the actual
HT/VHT/none information on 2.4 GHz.

Fixes: ad9a1bfe788e ("nl80211: Share VHT channel configuration for HE")
Signed-off-by: Sven Eckelmann <seckelmann@datto.com>
src/drivers/driver_nl80211.c