package/wpa_supplicant: add Config.in option for WPA3 support
authorSergey Matyukevich <geomatsi@gmail.com>
Mon, 9 Sep 2019 20:20:32 +0000 (23:20 +0300)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sat, 21 Sep 2019 15:55:40 +0000 (17:55 +0200)
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@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/wpa_supplicant/Config.in
package/wpa_supplicant/wpa_supplicant.mk

index 1594b877c664dfca22d28502816f8ac911b8418a..cba7fa07e1f02e3c25e1d6a0876f0c95cfc7dcb4 100644 (file)
@@ -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
index 0a7a5072dc2cdc17a70fe3825cbb8e05badb84aa..283c006052bec362802a4eed21312f9e86730f8a 100644 (file)
@@ -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