From patchwork Mon Sep 9 20:20:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Matyukevich X-Patchwork-Id: 1159922 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.137; helo=fraxinus.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="Z9S2/ayj"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46Rzxv3XDZz9sN1 for ; Tue, 10 Sep 2019 06:18:27 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D185985A5D; Mon, 9 Sep 2019 20:18:23 +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 YKUr9xMKKs3p; Mon, 9 Sep 2019 20:18:21 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id C71E18542A; Mon, 9 Sep 2019 20:18:21 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 7A85F1BF384 for ; Mon, 9 Sep 2019 20:18:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 72CFE864E9 for ; Mon, 9 Sep 2019 20:18:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28ewe+Yl3Cga for ; Mon, 9 Sep 2019 20:18:19 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) by hemlock.osuosl.org (Postfix) with ESMTPS id 8D4188632E for ; Mon, 9 Sep 2019 20:18:19 +0000 (UTC) Received: by mail-lj1-f194.google.com with SMTP id l20so14075981ljj.3 for ; Mon, 09 Sep 2019 13:18:19 -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=A1JtG+/WTL4rJ4Gp/pVxON5YJhqST8v15V1ikiPqRB8=; b=Z9S2/ayjr0Q1LrkLsu/KOEoWvUGNx1UWaFJBfzNwdf5u8mp56tcDqH9QZUaFnsky5b ijYXTpMoWHwPyo+/IHBucByI4AGI45G1eHq4iCruyCE+L3MJ7WGTkqtpnMyXDLOkyjPy gMHqjruQ/C81/6vKAqixemfR1041t46332JEiOasyATB41V3UZIhQIfYthwMZ8GsSjKO d2hXp50gVpohy/0D+ddIdr5YGjbeYzc4u6nGZA60PP4iUtirB02nIDu9xEPhHOoHE3mr gYmtsf5bPQgizlPnahxcoU0YUZPjXBZ713UigwlxUaYt7TDJArqOLNTXKAbs8jrvkW8u Gsjw== 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=A1JtG+/WTL4rJ4Gp/pVxON5YJhqST8v15V1ikiPqRB8=; b=WMg8LNldW9O1HtiNfQg69EGruHtCtC8bxtE7utMzno1YPdy5zUmqFLBPyA7zz/rqiI GIAbSv2L2kq7lDh5aKYlB0a2D/nxKkWAZT3urbnSE6C06t7jJN+r4JmU361W2iVNInB1 X/vs8ik0W6+bAJbKhuflW9sooa8sOcXA5qs7d1XmC9k2Jr4xy/X+7rk2P4JjV9BXENzj b84MSwZDiYUomlm6XSzLCx52hOwmQ7S+w5mP7+dYhiBEk0dMnhM3+EyDwIqDfihqmhdr geUn/lTo/zWsI/mgavhw9i+U5AG2lxUmY3k9tNKyF4cgr3pxtPzXupkgGEiJ+5u2iRyV Wndw== X-Gm-Message-State: APjAAAV9+r+hTargG1URxvSoNfkTN6uBgpPc1CSMfqDq1zAidhzDJ83a eu9hsjcY3HotP6tlsrXWEfX2lhI+ X-Google-Smtp-Source: APXvYqxaNqCfUy/iF/bjx8xEY9O0rwk8W/6wYBxQsMSesf/LdgcbJvVOW+cAYziit3r9V5nqIHbSgw== X-Received: by 2002:a2e:b0e2:: with SMTP id h2mr16882310ljl.79.1568060297514; Mon, 09 Sep 2019 13:18:17 -0700 (PDT) Received: from localhost.localdomain (ppp78-37-210-150.pppoe.avangarddsl.ru. [78.37.210.150]) by smtp.googlemail.com with ESMTPSA id v10sm3620348lfi.26.2019.09.09.13.18.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2019 13:18:17 -0700 (PDT) From: Sergey Matyukevich To: buildroot@buildroot.org Date: Mon, 9 Sep 2019 23:20:32 +0300 Message-Id: <20190909202034.27508-2-geomatsi@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190909202034.27508-1-geomatsi@gmail.com> References: <20190909202034.27508-1-geomatsi@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 1/3] package/wpa_supplicant: add Config.in option for WPA3 support 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 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 --- 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