Message ID | 20191215093438.10120-6-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="gJeu2Gcn"; 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 47bK5y4ryZz9sPJ for <incoming@patchwork.ozlabs.org>; Sun, 15 Dec 2019 20:36:06 +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=YbIJQLGs0DAHKV+69lV7FCYHXls4trWCaHxs8X0GSgU=; b=gJeu2GcnfUphiQa+SR8k7COdBa BSusd4VjaRFw1hE+JMGaTWP50rVrkNPm1rY4a8holZWyHhk8Ra/L0jSEZ3dUMIuHGVyXLUX0hdUFp BIXZDG7MTkGxyKjdGGHCmzXZ4hA1qg7SH+1lMcAhqDyxCp+2NbBP8fepdK+Ou7G9jBEVxmSc6eUma uqcLVztqhrRUQvSYiVFHJ0GSg8KDtD25a2hvbqYCvppS/O5FZU1qhVeZrBqf0/FZ+CVViDM7htCGV LaxNuNydsWOGUH71oTr9W8BGRIOsyFNxiwkGjnUNWybJZiTv47T8xQVZ4aUKR44UViirZtnxwKv/3 QhGQ8LPg==; 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 1igQJl-0006rW-Sy; Sun, 15 Dec 2019 09:36:01 +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 1igQIg-0004ga-Ec for hostap@lists.infradead.org; Sun, 15 Dec 2019 09:34:55 +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:34:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,317,1571727600"; d="scan'208";a="216889280" Received: from jed01681.jer.intel.com ([10.12.190.127]) by orsmga006.jf.intel.com with ESMTP; 15 Dec 2019 01:34:53 -0800 From: Ilan Peer <ilan.peer@intel.com> To: hostap@lists.infradead.org Subject: [PATCH 05/40] nl80211: Always register for Rx authentication frames with PASN Date: Sun, 15 Dec 2019 11:34:03 +0200 Message-Id: <20191215093438.10120-6-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_013454_503145_A19FE837 X-CRM114-Status: UNSURE ( 9.28 ) 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/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 2507581cf5..681c2029df 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -2191,6 +2191,22 @@ static int nl80211_mgmt_subscribe_non_ap(struct i802_bss *bss) nl80211_register_frame(bss, bss->nl_mgmt, type, (u8 *) "\x03\x00", 2); +#ifdef CONFIG_PASN + wpa_printf(MSG_DEBUG, "nl80211: Subscribe PASN authentication frames"); + + /* + * TODO: the PASN authentication identifier was not defined yet in the + * specification, for now using 0x07, as defined in other places in the + * code. + */ + if (drv->capa.flags & WPA_DRIVER_FLAGS_SME) + if (nl80211_register_frame(bss, bss->nl_mgmt, + (WLAN_FC_TYPE_MGMT << 2) | + (WLAN_FC_STYPE_AUTH << 4), + (u8 *)"\x07\x00", 2)) + ret = -1; +#endif /* CONFIG_PASN */ + #ifdef CONFIG_INTERWORKING /* QoS Map Configure */ if (nl80211_register_action_frame(bss, (u8 *) "\x01\x04", 2) < 0)
Register a filter that only requests PASN authentication frames to be passed to user space. Signed-off-by: Ilan Peer <ilan.peer@intel.com> --- src/drivers/driver_nl80211.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)