Message ID | 20210315125713.23355-14-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=Bux12x5/; 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 4DzcDz4VL3z9sRf for <incoming@patchwork.ozlabs.org>; Tue, 16 Mar 2021 00:08:51 +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=hW1XUpRFcvPmwNveR6cPM79x+LbSaoJPXOwIOLsfbs8=; b=Bux12x5/Be0v1hqWemWxbvPDKf Vbbfuo1RmAby/0bQv0rYKIbuuMXqQQSwFxlshS7QhlgXZAuA+eCz0FwlODHgrQr1Rl0oCMzKzIBsM wFywMTxnUK52Yzleb+3Z2Bh+yIVj4Gq6l4EVp9FX09yNmrZiUdRwSDYO0+reCEn3K8HA9QFgU7eyR JZC/sCg1vo9IkdN0YabZOVwhSKCVBd4ZvXFoaZd/jNANeKrgPZgmaQendkCGjAxcgb178qIeYm+pU H5xHnUx0mZnYneSQWTvE4US+HI7fmfMdDSxoN9sxlX8Omo5Eveg/iDijGjBUH/Iwcq50d7ngHoV26 hVk4e74A==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lLmx3-00Fv7m-VM; Mon, 15 Mar 2021 13:08:06 +0000 Received: from mga02.intel.com ([134.134.136.20]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lLmux-00FtU2-HS for hostap@lists.infradead.org; Mon, 15 Mar 2021 13:08:01 +0000 IronPort-SDR: 6HMrzsxkuGivMQftWOz9TVH+mNfmDrEi9bJCuZBo1HFnfzR8cuodNev6RHjhCOOhsQZ2SOFUEo b3/hYpDTMT2w== X-IronPort-AV: E=McAfee;i="6000,8403,9923"; a="176210874" X-IronPort-AV: E=Sophos;i="5.81,249,1610438400"; d="scan'208";a="176210874" 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:34 -0700 IronPort-SDR: dxQsJP1asB8rWqPESK3PZAGjtSiZkLlunaEh7ozYNbMbKVsDn4CrDPupcrpjZ9U1BhglLSux62 HkWnT2GgtVbQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,249,1610438400"; d="scan'208";a="378499694" Received: from jed01615.jer.intel.com ([10.12.217.51]) by fmsmga007.fm.intel.com with ESMTP; 15 Mar 2021 05:57:33 -0700 From: Ilan Peer <ilan.peer@intel.com> To: hostap@lists.infradead.org Cc: Ilan Peer <ilan.peer@intel.com> Subject: [PATCH 13/15] nl80211: Allow sending deauthentication frame with off channel Date: Mon, 15 Mar 2021 14:57:11 +0200 Message-Id: <20210315125713.23355-14-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_130800_232080_1A10DDA2 X-CRM114-Status: GOOD ( 10.97 ) 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: To allow for a PASN station to deauthenticate from an AP, extend nl80211 to allow sending a deuathentication frame with off channel enabled. Signed-off-by: Ilan Peer <ilan.peer@intel.com> --- src/drivers/driver_nl80211.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) Content analysis details: (-2.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [134.134.136.20 listed in wl.mailspike.net] -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 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/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index a67bef9a30..2c0f536817 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -4040,6 +4040,19 @@ static int wpa_driver_nl80211_send_mlme(struct i802_bss *bss, const u8 *data, } } +#ifdef CONFIG_PASN + if (is_sta_interface(drv->nlmode) && + WLAN_FC_GET_TYPE(fc) == WLAN_FC_TYPE_MGMT && + WLAN_FC_GET_STYPE(fc) == WLAN_FC_STYPE_DEAUTH) { + wpa_printf(MSG_DEBUG, + "nl80211: send_mlme: allow deauth"); + + use_cookie = 0; + offchanok = 1; + goto send_frame_cmd; + } +#endif /* CONFIG_PASN */ + if (freq == 0 && drv->nlmode == NL80211_IFTYPE_ADHOC) { freq = nl80211_get_assoc_freq(drv); wpa_printf(MSG_DEBUG,
To allow for a PASN station to deauthenticate from an AP, extend nl80211 to allow sending a deuathentication frame with off channel enabled. Signed-off-by: Ilan Peer <ilan.peer@intel.com> --- src/drivers/driver_nl80211.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)