]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/wpa_supplicant_i.h
Enhance get_mode() to return correct hw_mode with 6 GHz support
authorVamsi Krishna <vamsin@codeaurora.com>
Mon, 30 Dec 2019 09:42:12 +0000 (15:12 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 23 Jan 2020 13:48:51 +0000 (15:48 +0200)
commitd0e116f61f0daafc1cba51027ad62c5668fc342a
treeda53fad47ef17563df887ae8946adc21e6b41d1a
parent4658eb77d6a528af8b82c9c6c707511b7bff27a0
Enhance get_mode() to return correct hw_mode with 6 GHz support

The 5 GHz channels are stored in one hw_features set with mode
HOSTAPD_MODE_IEEE80211A while the 6 GHz channels will need to be stored
in a separate hw_features set (but with same mode
HOSTAPD_MODE_IEEE80211A) due to possibility of different HT/VHT/HE
capabilities being available between the 5 GHz and 6 GHz bands.

Iterate through all hw_features sets and check and match the band of
channel supported by the hw_features set while getting the hw_features
set in get_mode(). This allows both the 5 GHz and 6 GHz channels to be
found and correct capabilities to be used in cases where the driver
reports different capability values between 5 and 6 GHz channels.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/op_classes.c
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/rrm.c
wpa_supplicant/scan.c
wpa_supplicant/sme.c
wpa_supplicant/wpa_supplicant.c
wpa_supplicant/wpa_supplicant_i.h