Message ID | 20210315125713.23355-13-ilan.peer@intel.com |
---|---|
State | Accepted |
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=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=OjGMgsOx; dkim-atps=neutral Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) (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 4Dzdny4RKtz9tlM for <incoming@patchwork.ozlabs.org>; Tue, 16 Mar 2021 01:19:02 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cGCivjLBG4cNJQhoXb3VbRLoVx38McNv6t3yBr/kQVw=; b=OjGMgsOxWxGJxd2KpuetlHJr6U ywAmwmxQqPz0VhVHWYN+rIsr7kZ7npj00N8xklDcHuEsDS+gL6e4EgvsNVJfxoyjnOmvadR85eGG1 OBaIovUKAh0w8or10UYTpXzuHA5kdu2QCo/I38h6o990legCvScxbFYsFpEnNUbqbl/wo448lksRz lOpOj473wlDwtIS0gprOlhCgIcXxgrdvchSnIQcWFOAzQOO6d9vyMuBNxoz73b5MsTNbKr7VDDA7J lj05wcnc6X0MDuRVM4Is2z3uSvDsUPecRxrJhOugQVQu9pIbdAw/OGmJXXjTJYSPHTLW5ToAFDFks Ul3D6a2w==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lLo3M-00G4Em-2o; Mon, 15 Mar 2021 14:18:40 +0000 Received: from mga02.intel.com ([134.134.136.20]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lLmuw-00FtU1-Au for hostap@lists.infradead.org; Mon, 15 Mar 2021 13:07:56 +0000 IronPort-SDR: jnp/VP6WCfWv/dUZqD0lnMYOTiVe27dcrOhxyM3zYB0Sb2C4cAAfTHiUOkV15R+r9TDlKSHeR7 zo4pPduSk0Zg== X-IronPort-AV: E=McAfee;i="6000,8403,9923"; a="176210871" X-IronPort-AV: E=Sophos;i="5.81,249,1610438400"; d="scan'208";a="176210871" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2021 05:57:33 -0700 IronPort-SDR: QeddsQ3SKKnzmvPQLoZ2tbcodcoD7EURNcfeybM4TlgGeBYOPQJjjqJkZp0FA2I/NyKdd0wlUF /nn094wdiMog== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,249,1610438400"; d="scan'208";a="378499687" Received: from jed01615.jer.intel.com ([10.12.217.51]) by fmsmga007.fm.intel.com with ESMTP; 15 Mar 2021 05:57:32 -0700 From: Ilan Peer <ilan.peer@intel.com> To: hostap@lists.infradead.org Cc: Ilan Peer <ilan.peer@intel.com> Subject: [PATCH 12/15] AP: Handle deauthentication frame from PASN station Date: Mon, 15 Mar 2021 14:57:10 +0200 Message-Id: <20210315125713.23355-13-ilan.peer@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210315125713.23355-1-ilan.peer@intel.com> References: <20210315125713.23355-1-ilan.peer@intel.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210315_130755_112652_4D2DC621 X-CRM114-Status: UNSURE ( 8.87 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) X-Spam-Report: Spam detection software, running on the system "desiato.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: When a deauthentication frame is received, clear the corresponding PTKSA cache entry for the given station, to invalidate previous PTK information. Signed-off-by: Ilan Peer <ilan.peer@intel.com> --- src/ap/ieee802_11.c | 5 +++++ 1 file changed, 5 insertions(+) Content analysis details: (-2.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [134.134.136.20 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [134.134.136.20 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 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> 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 |
Add additional PASN features
|
expand
|
diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 4f9a0c2d6e..1ffdd262b3 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -5910,6 +5910,11 @@ static void handle_deauth(struct hostapd_data *hapd, " reason_code=%d", MAC2STR(mgmt->sa), le_to_host16(mgmt->u.deauth.reason_code)); + wpa_msg(hapd->msg_ctx, MSG_DEBUG, "Flushing PTKSA cache for: " MACSTR, + MAC2STR(mgmt->sa)); + + ptksa_cache_flush(hapd->ptksa, mgmt->sa, WPA_CIPHER_NONE); + sta = ap_get_sta(hapd, mgmt->sa); if (sta == NULL) { wpa_msg(hapd->msg_ctx, MSG_DEBUG, "Station " MACSTR " trying "
When a deauthentication frame is received, clear the corresponding PTKSA cache entry for the given station, to invalidate previous PTK information. Signed-off-by: Ilan Peer <ilan.peer@intel.com> --- src/ap/ieee802_11.c | 5 +++++ 1 file changed, 5 insertions(+)