]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Consult driver capabilities before setting HE bit in GO's conf
authorJintao Lin <jintaolin@chromium.org>
Wed, 7 Aug 2024 21:48:01 +0000 (21:48 +0000)
committerJouni Malinen <j@w1.fi>
Sat, 21 Dec 2024 08:39:28 +0000 (10:39 +0200)
commit8e490da87fa054c88a788f729f34dcc97be44cf4
treeafee8431fea37ae19b0dc39e938c506e5b80a820
parenta2b018cdee08958237e1e72c3cb7a18bec2b41f3
P2P: Consult driver capabilities before setting HE bit in GO's conf

p2p_go_he could be set to 1 in the global config file while the device
might only has a VHT Wi-Fi NIC. Consult driver capabilities before
setting the HE bit for the GO's configuration so that latter AP
configuration does not fail due to wrong AP configuration, like
hostapd_get_oper_centr_freq_seg0_idx().

This config bit is checked and set in wpa_supplicant_conf_ap_ht() based
on a more recent commit 3459c54ac78b ("mesh: Add support for HE mode"),
Thus there is no need to override this bit specifically for P2P GO using
this older approach.

Signed-off-by: Jintao Lin <jintaolin@chromium.org>
wpa_supplicant/ap.c