]> git.ipfire.org Git - thirdparty/hostap.git/commit
HE/VHT: Fix frequency setup with HE enabled
authorMarkus Theil <markus.theil@tu-ilmenau.de>
Tue, 30 Jun 2020 11:53:17 +0000 (13:53 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 14 Oct 2020 09:44:09 +0000 (12:44 +0300)
commit7f8ac02e8524633d92941f7934440c19f1002616
tree32f9c425b67e7626e0255d34e64be3776ca70bfe
parent0f07230eb9684080adfd711531be075fa157f00d
HE/VHT: Fix frequency setup with HE enabled

Some places in the code base were not using the wrappers like
hostapd_set_oper_centr_freq_seg0_idx and friends. This could lead to
errors, for example when joining 80 MHz mesh networks. Fix this, by
enforcing usage of these wrappers.

wpa_supplicant_conf_ap_ht() now checks for HE capability before dealing
with VHT in order for these wrappers to work, as they first check HE
support in the config.

While doing these changes, I've noticed that the extra channel setup
code for mesh networks in wpa_supplicant/mesh.c should not be necessary
anymore and dropped it. wpa_supplicant_conf_ap_ht() should handle this
setup already.

Acked-by: John Crispin <john@phrozen.org>
Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
src/ap/dfs.c
wpa_supplicant/ap.c
wpa_supplicant/mesh.c