From patchwork Fri Oct 5 21:49:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hauke Mehrtens X-Patchwork-Id: 979810 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=hauke-m.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="tc3LZDZ6"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42RkL12FtTz9s1c for ; Sat, 6 Oct 2018 08:03:53 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FfjAF6OebHQx4Z8L/Xe8fsjnnkM+LFaOKovU7EZlr38=; b=tc3LZDZ6W9gNJd nFHqQHKzKxNlk/wqsQZZZw7MYK3eVJGPvBIuuzIvCBMkflPTWPiXtrdvEzdSJqDe/Z5IdhB/ER0oM iCMkHwz0wLH691jcLkTH5u+o/vuDcA9AKaySWYRXRbdiOR3qG/c/2uSgnMm30rqFogRm7POW9vKVV jxJ+dIBe+bG0s0gB5DJQat3QzlsRXrk78UCm6K3Tqvh8OQPVuxgWBKKLLqZSs3QNBPOTPNeK7tRVu LACM1AqsqDOOyP1qudiA83y+vGDLSVPpQ5QR00sbYQp81NFLJn3Psen0mD39rf3PJ6kcp+e6ebQkt PwSk/vJUmJTJNwC2HKGQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g8YCG-0008CS-Ok; Fri, 05 Oct 2018 22:03:44 +0000 Received: from mx1.mailbox.org ([80.241.60.212]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g8Y9R-0006vB-Hf for openwrt-devel@lists.openwrt.org; Fri, 05 Oct 2018 22:01:25 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 9EFEB4931D; Fri, 5 Oct 2018 23:49:43 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id 6k89WC27H4NX; Fri, 5 Oct 2018 23:49:42 +0200 (CEST) From: Hauke Mehrtens To: openwrt-devel@lists.openwrt.org Date: Fri, 5 Oct 2018 23:49:29 +0200 Message-Id: <20181005214930.23763-6-hauke@hauke-m.de> In-Reply-To: <20181005214930.23763-1-hauke@hauke-m.de> References: <20181005214930.23763-1-hauke@hauke-m.de> X-Bad-Reply: References and In-Reply-To but no 'Re:' in Subject. X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181005_150049_775225_CB117AEB X-CRM114-Status: GOOD ( 13.16 ) X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [80.241.60.212 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record Subject: [OpenWrt-Devel] [RFC 5/6] netifd: Add support for wireless SAE authentication X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hauke Mehrtens MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Signed-off-by: Hauke Mehrtens --- .../config/netifd/patches/001-wireless-sae.patch | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 package/network/config/netifd/patches/001-wireless-sae.patch diff --git a/package/network/config/netifd/patches/001-wireless-sae.patch b/package/network/config/netifd/patches/001-wireless-sae.patch new file mode 100644 index 0000000000..e707bfbb21 --- /dev/null +++ b/package/network/config/netifd/patches/001-wireless-sae.patch @@ -0,0 +1,26 @@ +diff --git a/scripts/netifd-wireless.sh b/scripts/netifd-wireless.sh +index fc077f2..396ef71 100644 +--- a/scripts/netifd-wireless.sh ++++ b/scripts/netifd-wireless.sh +@@ -211,7 +211,7 @@ wireless_vif_parse_encryption() { + # wpa2/tkip+aes => WPA2 RADIUS, CCMP+TKIP + + case "$encryption" in +- wpa2*|*psk2*) ++ wpa2*|*psk2*|psk3*|sae*) + wpa=2 + ;; + wpa*mixed*|*psk*mixed*) +@@ -228,6 +228,12 @@ wireless_vif_parse_encryption() { + wpa_pairwise="$wpa_cipher" + + case "$encryption" in ++ psk3-mixed*|sae-mixed*) ++ auth_type=psk-sae ++ ;; ++ psk3*|sae*) ++ auth_type=sae ++ ;; + *psk*) + auth_type=psk + ;;