From patchwork Sat Mar 16 11:35:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "lorenzo@kernel.org" X-Patchwork-Id: 1912802 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Mjx3477V; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=l+/0GcCV; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TxfG80hdSz23qh for ; Sat, 16 Mar 2024 22:36:29 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=NiMp3T/Wkb5CxW8H04e5ljHYePO7108xuWfYqON987s=; b=Mjx3477VerIRCa YJyf2ylDIEjehNeYsZhw9lMAKF7UFkEBy35sUbQGWwZeoVs3fbiS06zGIdEeLmSXZTi2gPC0wsaQh Uazyp77CP0Qws7aY5jMCu7utCOXpnGq81VXcgnAr1TQTbBNCuSgeTsLuaF4Fwy4pGjgDQnKlWy5Vp 7pUt2I53CAPNo5e1gTTc/CoXnhlWZMDEdaMxEyYZAPBbPIYZjH6YudU64P57BnzneWfd8c8hHlDWu ttLXZGodqSg06rjSnGt2eZCjgL81+F2wxyCBFH8eky6otJlhxmFOtFvs6KQhMBa3YWXtCojgTxsah hgM5/c/1E0YuvDex48LA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rlSKP-000000031qx-2I6s; Sat, 16 Mar 2024 11:35:53 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rlSKK-000000031pt-35sl for hostap@lists.infradead.org; Sat, 16 Mar 2024 11:35:50 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id ED123601D6; Sat, 16 Mar 2024 11:35:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D3F3C433F1; Sat, 16 Mar 2024 11:35:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710588944; bh=TuKBVbFKRq0MqpdF8WDRdpySEtnVWY8+i8s7EGceuDs=; h=From:To:Cc:Subject:Date:From; b=l+/0GcCVwDVMvsYw4In2guchYd5bz41vWZTC74r5XJEDuYQadLNYsOWHD90xqlXWg 3qbRk5G6R0nPx3CFCEU1QonTxGBIM81A7elc9iQRI/bku+tsn2GId6Fe6CdEIAI7k0 6R1785OmsMHQnp3d/7qY/oiGWe3GovPHzU/h9oVk3RpR0MqmU7tnp+zEesMbPbwTmt D/pbtscdMItRQXEz35d9YA1WQjgIGfTQD93ge93eI8NHPonTsVIAABF7B9mPlqUgyh jXvZdhVmSiWvAQtcoux6N7haTnP1k17wQxRL3bLtbNqzt4gB0Ke4ebAZ0Hqpye8f2i dwXmMhVNGx+3Q== From: Lorenzo Bianconi To: hostap@lists.infradead.org Cc: j@w1.fi, lorenzo.bianconi83@gmail.com, ryder.lee@mediatek.com, evelyn.tsai@mediatek.com, nbd@nbd.name, allen.ye@mediatek.com Subject: [PATCH v3 0/4] Introduce Automated Frequency Coordination (AFC) support Date: Sat, 16 Mar 2024 12:35:22 +0100 Message-ID: X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240316_043548_923236_9D0EF718 X-CRM114-Status: UNSURE ( 8.57 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.8 (-----) X-Spam-Report: Spam detection software, running on the system "bombadil.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: Introduce Automated Frequency Coordination (AFC) support for UNII-5 and UNII-7 6GHz bands. Update Transmit Power Envelope (TPE) IE according to the reply from AFC coordinator on UNII-5 or UNII-7 6GHz [...] Content analysis details: (-5.8 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [139.178.84.217 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.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -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.0 T_SCC_BODY_TEXT_LINE No description available. -0.6 DKIMWL_WL_HIGH DKIMwl.org - High trust sender 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 Introduce Automated Frequency Coordination (AFC) support for UNII-5 and UNII-7 6GHz bands. Update Transmit Power Envelope (TPE) IE according to the reply from AFC coordinator on UNII-5 or UNII-7 6GHz bands. AFCD and AFC hostapd client are tested with AFC DUT Test Harness [0]. Changes since v2: - multiple fixes testing with AFC DUT Test Harness Changes since v1: - use unix socket instead of a tcp one Changes since rfc: - move curl connection to a dedicated afc daemon Lorenzo Bianconi (4): hostapd: afcd: add AFC daemon support hostapd: export hostapd_is_usable_chans utility routine hostapd: ap: add AFC client support hostapd: update TPE IE according to AFC afc/.gitignore | 1 + afc/Makefile | 31 ++ afc/afcd.c | 292 ++++++++++++++ hostapd/Makefile | 6 + hostapd/config_file.c | 262 ++++++++++++ hostapd/defconfig | 3 + hostapd/hostapd.conf | 42 ++ src/ap/afc.c | 918 ++++++++++++++++++++++++++++++++++++++++++ src/ap/ap_config.c | 16 + src/ap/ap_config.h | 47 +++ src/ap/hostapd.c | 99 +++++ src/ap/hostapd.h | 31 ++ src/ap/hw_features.c | 4 +- src/ap/hw_features.h | 6 + src/ap/ieee802_11.c | 47 ++- 15 files changed, 1786 insertions(+), 19 deletions(-) create mode 100644 afc/.gitignore create mode 100644 afc/Makefile create mode 100644 afc/afcd.c create mode 100644 src/ap/afc.c