Message ID | 20191215093438.10120-17-ilan.peer@intel.com |
---|---|
State | Changes Requested |
Headers | show
Return-Path: <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="a/qevQyP"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47bK8B1M3Cz9sPJ for <incoming@patchwork.ozlabs.org>; Sun, 15 Dec 2019 20:38:02 +1100 (AEDT) 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:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=KQQdtnpSYDPE3+88IXCgOrRsTJy3OIw5kamnGudXnBs=; b=a/qevQyPM5JaAWp00M/52wGkc/ /el0WPiSfdV8+IW+GorQgbKvsRtsRgSKym6RSgAWsg7VGFaSZG/DGMw/iJzWwrhCkKEtn52mQoq7y B/P5sozPmerLqiQljENPqWQJJ/Z3m0Y+tEYhqwhfMoU/4d+wWlV6MXA5b58+hfmwrXWU+hycogwf2 0sDnjcjGuEDKccJDSRsVQgtDCjoC6rYcRuKr0Lwhp9yzCSgwHdq0NIYh8nzDXHdZ2KyXaEokR/jxd 9rxLuqwSVvfkQdmAZ54RynKAE6OEWfXw+ELvfKYnDYgXzrnizyG29SpMndh0sPYGBWC+yBUAAe7ho 911Aahtg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1igQLf-0000JZ-9i; Sun, 15 Dec 2019 09:37:59 +0000 Received: from mga04.intel.com ([192.55.52.120]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1igQIy-0004sp-TS for hostap@lists.infradead.org; Sun, 15 Dec 2019 09:35:14 +0000 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Dec 2019 01:35:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,317,1571727600"; d="scan'208";a="216889349" Received: from jed01681.jer.intel.com ([10.12.190.127]) by orsmga006.jf.intel.com with ESMTP; 15 Dec 2019 01:35:08 -0800 From: Ilan Peer <ilan.peer@intel.com> To: hostap@lists.infradead.org Subject: [PATCH 16/40] common: Allow WPA_CIPHER_GTK_NOT_USED in RSNE parsing Date: Sun, 15 Dec 2019 11:34:14 +0200 Message-Id: <20191215093438.10120-17-ilan.peer@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191215093438.10120-1-ilan.peer@intel.com> References: <20191215093438.10120-1-ilan.peer@intel.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191215_013512_998884_9C2AFC10 X-CRM114-Status: UNSURE ( 9.96 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [192.55.52.120 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <hostap.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/hostap>, <mailto:hostap-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/hostap/> List-Post: <mailto:hostap@lists.infradead.org> List-Help: <mailto:hostap-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/hostap>, <mailto:hostap-request@lists.infradead.org?subject=subscribe> Cc: Ilan Peer <ilan.peer@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Hostap" <hostap-bounces@lists.infradead.org> Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
Support for Pre association Security Negotiation (PASN)
|
expand
|
diff --git a/src/common/wpa_common.c b/src/common/wpa_common.c index 65db96e72a..6ad9f64c98 100644 --- a/src/common/wpa_common.c +++ b/src/common/wpa_common.c @@ -1650,7 +1650,8 @@ int wpa_parse_wpa_ie_rsn(const u8 *rsn_ie, size_t rsn_ie_len, if (left >= 4) { data->mgmt_group_cipher = rsn_selector_to_bitfield(pos); - if (!wpa_cipher_valid_mgmt_group(data->mgmt_group_cipher)) { + if (data->mgmt_group_cipher != WPA_CIPHER_GTK_NOT_USED && + !wpa_cipher_valid_mgmt_group(data->mgmt_group_cipher)) { wpa_printf(MSG_DEBUG, "%s: Unsupported management group cipher 0x%x (%08x)", __func__, data->mgmt_group_cipher,
PASN authentication requires that group management cipher suite would be set to 00-0F-AC:7 in the RSN IE, so allow this value when parsing and validating the RSN IE. Signed-off-by: Ilan Peer <ilan.peer@intel.com> --- src/common/wpa_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)