From patchwork Sun Sep 8 15:17:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Matyukevich X-Patchwork-Id: 1159464 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="VYfZ4V5Y"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46RFGG2V1Rz9sNf for ; Mon, 9 Sep 2019 01:15:01 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id CB2E820108; Sun, 8 Sep 2019 15:14:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uNAtBNXALIGy; Sun, 8 Sep 2019 15:14:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 84E2E203C7; Sun, 8 Sep 2019 15:14:56 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 80FBC1BF2C9 for ; Sun, 8 Sep 2019 15:14:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7DF11853C3 for ; Sun, 8 Sep 2019 15:14:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HCM7qmaMQjMB for ; Sun, 8 Sep 2019 15:14:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) by fraxinus.osuosl.org (Postfix) with ESMTPS id A4F1F85321 for ; Sun, 8 Sep 2019 15:14:53 +0000 (UTC) Received: by mail-lf1-f41.google.com with SMTP id w6so8571478lfl.2 for ; Sun, 08 Sep 2019 08:14:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WhiA2emwGgVlLrq4AF5BHxawZ4ZPRTWgyTD7VwpagKA=; b=VYfZ4V5YGd3GGHsrBYhB4n4qH2tHGhbI0LhSyZm0ruamp27RDjOWKrYCm0rDAvByc/ f+eY7nyVpm5imNgDEdN7rgxI0/p/fxNvxOTHzU5DVk1AwgtI55mf0NP0Hg7YdpfYEjOj NS3r0itxoRaHCjc9/mTKbM2agLRf7hE5BsdE58jDAGLtH1a5wpdqSNLzMSYIsTQpwfpk Wzg6T+R+RBhwyhqfV6Rh8HeUyLjrR6648Zvjep/4jxDFhgpHmscgLt4NhQRyDI584yGk WoXh2cmsSGcPhTXA9wj5vd7p+swEsn5pRiTHRPL4wi7ws0K8sjZyBW/tr2INbrxUW1tt 6ldw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WhiA2emwGgVlLrq4AF5BHxawZ4ZPRTWgyTD7VwpagKA=; b=oiEux0Ka4VSKmd9di2YcT1oN9vQje07G/V+daXiKD9O8H7OwNgpgAJnvhUNn0WAHL7 AYchrmAgo63oLYeYJihDbzBAGXbuiLKty0EQC6xKs5djRIvDtVImixndU5BS1/9wOKTs mS5C3dPpVYxtZuTVjaz/buz4edQWPcoIemQCzcwfPvJrT+gZPpr0xCJ62c2Nd5lA5D2b eBHPwxD2Xl6tPTe1OFMgRSLQtqtqumZmbYL1hotpI8F9ZVtLGV0e3aDZSpeYN4C8vUPV fEBPc2uZeGkc+i5ekafrc2Mfd4rO3PdTv8cBEaofd5rLRB0bTgBF9kpiPmPznDtokrXD 2doA== X-Gm-Message-State: APjAAAW/A5hryqhhx0PdTPTNnj9IkEENtWVckALrSWBEEzgJneIS1OYc Kj0pdv9p0BnrZfJkWC08tW5oYk5K X-Google-Smtp-Source: APXvYqxF5jo8P2A8SJ2tiWObdRdX2jWSxAHe1MRc/O75Ss7D6I2sJi9mWVO+anHqMox8whQCaBHZsA== X-Received: by 2002:a19:f111:: with SMTP id p17mr13266928lfh.187.1567955691483; Sun, 08 Sep 2019 08:14:51 -0700 (PDT) Received: from localhost.localdomain (ppp78-37-201-215.pppoe.avangarddsl.ru. [78.37.201.215]) by smtp.googlemail.com with ESMTPSA id b9sm2032784ljd.52.2019.09.08.08.14.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Sep 2019 08:14:51 -0700 (PDT) From: Sergey Matyukevich To: buildroot@buildroot.org Date: Sun, 8 Sep 2019 18:17:08 +0300 Message-Id: <20190908151709.23971-2-geomatsi@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190908151709.23971-1-geomatsi@gmail.com> References: <20190908151709.23971-1-geomatsi@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/2] package/wpa_supplicant: add Config.in option for WPA3 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bernd Kuhls , Sergey Matyukevich Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" New wpa_supplicant v2.9 enables by default WPA3 features such as SAE and DPP. 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 configuration. When this option is deselected, then all the above WPA3 options are disabled. Signed-off-by: Sergey Matyukevich --- 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