[Buildroot] [PATCH v2 1/3] package/wpa_supplicant: add Config.in option for WPA3 support
Sergey Matyukevich
geomatsi at gmail.com
Mon Sep 9 20:20:32 UTC 2019
New wpa_supplicant v2.9 enables by default WPA3 features in defconfig.
Meanwhile building those features requires openssl.
This patch adds Config.in option for WPA3 support in wpa_supplicant.
When this option is selected, libopenssl is also selected and WPA3
features OWE, SAE, DPP are enabled in wpa_supplicant .config file.
When this feature is deselected, then all the above WPA3 options
are disabled.
Signed-off-by: Sergey Matyukevich <geomatsi at gmail.com>
---
package/wpa_supplicant/Config.in | 7 +++++++
package/wpa_supplicant/wpa_supplicant.mk | 12 ++++++++++++
2 files changed, 19 insertions(+)
diff --git a/package/wpa_supplicant/Config.in b/package/wpa_supplicant/Config.in
index 1594b877c6..cba7fa07e1 100644
--- a/package/wpa_supplicant/Config.in
+++ b/package/wpa_supplicant/Config.in
@@ -81,6 +81,13 @@ config BR2_PACKAGE_WPA_SUPPLICANT_WPS
help
Enable support for Wi-Fi Protected Setup (WPS).
+config BR2_PACKAGE_WPA_SUPPLICANT_WPA3
+ bool "Enable WPA3 support"
+ select BR2_PACKAGE_OPENSSL
+ select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
+ help
+ Enable WPA3 support including OWE, SAE, DPP
+
config BR2_PACKAGE_WPA_SUPPLICANT_CLI
bool "Install wpa_cli binary"
help
diff --git a/package/wpa_supplicant/wpa_supplicant.mk b/package/wpa_supplicant/wpa_supplicant.mk
index 0a7a5072dc..283c006052 100644
--- a/package/wpa_supplicant/wpa_supplicant.mk
+++ b/package/wpa_supplicant/wpa_supplicant.mk
@@ -88,6 +88,18 @@ ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_WPS),y)
WPA_SUPPLICANT_CONFIG_ENABLE += CONFIG_WPS
endif
+ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_WPA3),y)
+WPA_SUPPLICANT_CONFIG_ENABLE += \
+ CONFIG_DPP \
+ CONFIG_SAE \
+ CONFIG_OWE
+else
+WPA_SUPPLICANT_CONFIG_DISABLE += \
+ CONFIG_DPP \
+ CONFIG_SAE \
+ CONFIG_OWE
+endif
+
# Try to use openssl if it's already available
ifeq ($(BR2_PACKAGE_LIBOPENSSL),y)
WPA_SUPPLICANT_DEPENDENCIES += host-pkgconf libopenssl
--
2.23.0
More information about the buildroot
mailing list