From patchwork Wed Mar 10 17:27:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Greear X-Patchwork-Id: 1450656 Return-Path: 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=) 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=OMuyIuqz; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=candelatech.com header.i=@candelatech.com header.a=rsa-sha256 header.s=default header.b=k2yUFN5l; 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 4DwfFj0ykgz9sRR for ; Thu, 11 Mar 2021 04:29:13 +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:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References:List-Owner; bh=m8Kg7dem5tpGde8InPoSOLzjEHoxoqV3p+xoAAvEvxk=; b=OMuyIuqzI9LR5s2uM2wCjbWQZq vbs5kFkezXierrQRSmlBa0vgYA6YfjkcsucLYC/qEfPj6wKk3QdKD1BAxVX3ap532k/Jasf4Cv01B coPQBjv6k+QC18e3/YMXlwX9KZ3R/6rw9epIXfyOntrDKNvH0YFrjW3G6cE7URjniwVO+AEa07zPl BVRHiZkQVC7FRP/TLJ2nlNXviBaC/wtDmo6SKZUKKfbUvoE0Rzpg/4SKn3kr2HuV/3opuxzJqN8XC GAe6AHClACT8Mr8PdGtPTJeRZ9aiAQoYtz8qVD/hKEr0xmrFW1b6CxegX1+SByHzEhujuXfua5mSz 369WH8pA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lK2d0-007LUC-0e; Wed, 10 Mar 2021 17:28:10 +0000 Received: from mail2.candelatech.com ([208.74.158.173] helo=mail3.candelatech.com) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lK2cs-007LT9-3x for hostap@lists.infradead.org; Wed, 10 Mar 2021 17:28:07 +0000 Received: from ben-dt4.candelatech.com (50-251-239-81-static.hfc.comcastbusiness.net [50.251.239.81]) by mail3.candelatech.com (Postfix) with ESMTP id C3EA613C2B0; Wed, 10 Mar 2021 09:27:58 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com C3EA613C2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1615397278; bh=o3ERG0VT1dtqzEYPUJcLMmZsOE/rnLCYJdGWPUb04To=; h=From:To:Cc:Subject:Date:From; b=k2yUFN5lMQaNZ0GMxr/okzLCJPkrhJlSplQzjk9KMmkZfKTSJDYKqZ7NcTg9eJgg7 amUOjJDPVVs7m16xtCXq8JAX5sE5qCWq7uaEHRsNzPX7zLIO7J2ye4qXNyTVZhP6Qn c8pDi51D7rXT7+p5qs7Y3gdLr85dNJuQJEiIzuPY= From: greearb@candelatech.com To: hostap@lists.infradead.org Cc: Ben Greear Subject: [PATCH-v2] supplicant: Support disabling HE for stations. Date: Wed, 10 Mar 2021 09:27:54 -0800 Message-Id: <20210310172754.9192-1-greearb@candelatech.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210310_172802_915440_C7CB3647 X-CRM114-Status: UNSURE ( 8.82 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) 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: From: Ben Greear Send a flag to the kernel with user has specified disable_he in supplicant config file. Requires kernel patch to function as expected. Signed-off-by: Ben Greear --- src/drivers/driver_nl80211.c | 8 ++++++++ 1 file changed, 8 insertions(+) Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Ben Greear Send a flag to the kernel with user has specified disable_he in supplicant config file. Requires kernel patch to function as expected. Signed-off-by: Ben Greear --- src/drivers/driver_nl80211.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index f092bc753..5476ce9fc 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -5926,6 +5926,14 @@ static int nl80211_ht_vht_overrides(struct nl_msg *msg, } #endif /* CONFIG_VHT_OVERRIDES */ +#ifdef CONFIG_HE_OVERRIDES + if (params->disable_he) { + wpa_printf(MSG_DEBUG, " * HE disabled"); + if (nla_put_flag(msg, NL80211_ATTR_DISABLE_HE)) + return -1; + } +#endif + return 0; }