]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Avoid NL80211_WPA_VERSION_3 on older kernel versions
authorBenjamin Berg <benjamin.berg@intel.com>
Wed, 17 Jan 2024 19:04:28 +0000 (20:04 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 20 Jan 2024 07:39:04 +0000 (09:39 +0200)
commit5589d62c57d97307c0682aa6654962eb15880bee
tree9a4be28126251bf02f4eea21a283303d3c7eee28
parent71bcb97b8c96c2f2d3d981441af04b34fa7d9992
nl80211: Avoid NL80211_WPA_VERSION_3 on older kernel versions

NL80211_WPA_VERSION_3 was only added in kernel 5.2 so it should not be
set for older kernel versions.  There is no direct way to check if the
value is supported. However, we can use the new infrastructure to check
whether the kernel has the NL80211_ATTR_SAE_PASSWORD attribute. It is
related and was added at the same time.

Fixes: 6cc78b3945d3 ("nl80211: Set NL80211_WPA_VERSION_2 vs. _3 based on AKM")
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
src/drivers/driver_nl80211.c