Message ID | 5532ca04d32660a28aff1846b96436c13d1c1a8b.1640014128.git.lorenzo@kernel.org |
---|---|
State | Deferred |
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: bilbo.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=ynt/jlVl; 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=U/Nva28t; dkim-atps=neutral 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>) 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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4JHmM654Wxz9s3q for <incoming@patchwork.ozlabs.org>; Tue, 21 Dec 2021 04:10:58 +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: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=lXTBoxFJmC3A+qdmY3olTsNFFRefEH22Zr9F/a2R4iw=; b=ynt/jlVl/nNDLR FDns0RHQOh41O/6uEXoVvcnwEJewO33cEa4M1DiNUVk45KshL/vTOoesK7pt7gPZswqlDwGiupcJz kFFxpFrE31GqFr99wpX85w3smWGHW1X9LF+Nh0ONeq7qZixgfONKOn0DRytR4NmULts/+RoB8Gc9l Bd8ZcQdYsxeNe2sKt8TCazrGbANmtNaxe5QcCzjxO8Trs/kp84+zUnfk5hdmnK5SUuAk+hV+qFnFw oY4tukWc9VToKdvWUDOFKSOOU6i/nXVcWrJnBhahCuJimClfea1/9gsvCEU115awVj+wV1+cZCslr 5hfjOfYl0Dwo5HJuyE+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mzMAy-003Tma-Om; Mon, 20 Dec 2021 17:10:17 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mzKuF-003AF3-Pn for hostap@lists.infradead.org; Mon, 20 Dec 2021 15:48:57 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 52952611B3; Mon, 20 Dec 2021 15:48:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CA4BC36AEA; Mon, 20 Dec 2021 15:48:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1640015334; bh=LwdAuQbSKe6A3WrxVwTcfT3T238rDbAFW7qWlAVLzyU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U/Nva28trJ9OXUYwt/8U9+hETm/boTH7NcDYtASf+3d/QxFPm22RruHYeJ4WIWfKz 9Q2dpQqI5V2UDpNHMtj+aKG6ZHhUX9RSDJuaI+f2ffK1BhhW+XjwRiALY374qsnfdN 6KXGno7iLWSwO7sX3r+ctGXBBOcYA3wZSreuvmqMdEllLJ3T9khr/p2Dxrb6Wuki2a JyTdd4qv6c2BG8bWX8CSIHt68ykjwChcHJa9T1okOJ2jl5UWykCZzEHglTmBKGx83+ 7l+fqLYPg2p+oghbQ21zXfKi130jmC3SbLV2hJjvpPzHF/W5eVMfKxYnYRii15Rd54 IJLdZMoQ4ggjQ== From: Lorenzo Bianconi <lorenzo@kernel.org> To: j@w1.fi Cc: hostap@lists.infradead.org, linux-wireless@vger.kernel.org, nbd@nbd.name, ryder.lee@mediatek.com, evelyn.tsai@mediatek.com, lorenzo.bianconi@redhat.com Subject: [PATCH 7/9] DFS: enable CSA for background radar detection Date: Mon, 20 Dec 2021 16:48:22 +0100 Message-Id: <5532ca04d32660a28aff1846b96436c13d1c1a8b.1640014128.git.lorenzo@kernel.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <cover.1640014128.git.lorenzo@kernel.org> References: <cover.1640014128.git.lorenzo@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211220_074855_897626_6D07B500 X-CRM114-Status: UNSURE ( 9.34 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.4 (/) 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: Rely on hostapd_dfs_request_channel_switch in order to enable CSA for background radar detection switching back to selected channel. Tested-by: Owen Peng <owen.peng@mediatek.com> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> --- src/ap/dfs.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) Content analysis details: (-0.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an 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_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.2 DKIMWL_WL_HIGH DKIMwl.org - High trust sender X-Mailman-Approved-At: Mon, 20 Dec 2021 09:08:43 -0800 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> 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 |
introduce background radar detection support
|
expand
|
diff --git a/src/ap/dfs.c b/src/ap/dfs.c index bd8a2484d..30be7e349 100644 --- a/src/ap/dfs.c +++ b/src/ap/dfs.c @@ -1086,10 +1086,11 @@ hostapd_dfs_start_channel_switch_background(struct hostapd_iface *iface) iface->radar_background.centr_freq_seg1_idx); hostpad_dfs_update_background_chain(iface); - hostapd_disable_iface(iface); - hostapd_enable_iface(iface); - return 0; + return hostapd_dfs_request_channel_switch(iface, iface->conf->channel, + iface->freq, iface->conf->secondary_channel, + hostapd_get_oper_centr_freq_seg0_idx(iface->conf), + hostapd_get_oper_centr_freq_seg1_idx(iface->conf)); } int hostapd_dfs_complete_cac(struct hostapd_iface *iface, int success, int freq,