From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.122 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796328414; b=kje3gPWIx0HzVrAtwVMyvwo2022D3jpYUF0JAMMEZh+RTpBajl+Cz6gDAJGWEgXSETan 4pQ94vYVlAlxDKWRbiCB8kA9Z8icyObzWbLuSTmtXQD1EV0wFNWmGTWTpK6Yt0w5FNbij HZI3ECtBrpYbJx1fHcPrf65XznC3nEyGUlREhI7CGjI7J7+x2hWOCBAT+TSN08jnQxaVE uY8p7cSPTAsBtAKBXKMXShv2krr7I0XhGuUYCmbn2ohChpEkoWo+ZWKVqmxVV8piObfb4 ihILH6sDg3UnQx+nhD1plgvbrvUnZSHEE8HgEOAZj1zmpgdInuXwq+4ml8R5I6uVkRw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796328414; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:CC:Subject:In-Reply-To: References:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=jASWrw+3zpzjUJjSwk81a0OjCgdHaZ4bu42A2K7X5n0=; b=JyZu432CkUHP7fE9MW3NffenP+HM0de4nI2syKzG2dNjlSTpGXJiJn4VOnybyCDXPUlF UKhGNmBmN394fU/nwciVVCG+/dsFv+b0+SVpn/LhLpnHFIRB1nN/r1wfjrLbN2boSGhYB zyu5aGFe+z9Cffgst1op1E1Iv9c8YA8klOb9k0Tq73+08pBsjhr/PB/ZWCauC/vOM/Rk1 QlUwRgGOvZu+Z/HBdf1ZDuB8mfZyz5BUX2BRYkH2C5t27tQ0fFW9xGlOIDeXtOkyQTPK7 DKTk3LzknAyumiL/29+8dRWdvNZ3vb0ZtKmuWm9jrcernz/tavqFYQwwk5w2UfhlmtQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b="o2jM/rvv"; arc=none smtp.remote-ip=95.215.58.122 Received: from mta1.migadu.com (out-122.mta1.migadu.com [95.215.58.122]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 17606606A32D for ; Thu, 3 Dec 2026 20:06:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 17606606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=o2jM/rvv X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=jASWrw+3zpzjUJjSwk81a0OjCgdHaZ4bu42A2K7X5n0=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796328412; v=1; x=1796933212; b=o2jM/rvvQk1VtR9VTYa0RckCvNN97J0UTbxA6KJ7J3j+M9ISz2e/IcJuDbra058pwt7bmBaE Eywb5aGRlwTbsrreAys/nWM60h17dIf8d/gOxOXMc7D+3mapM3OvXDa9vHEkp47KoQDdkUy5hqh 9kRjKKkLNqD1ONFbPg/fgQVA= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 16fdde940fcd21b6; Thu, 03 Dec 2026 20:06:52 +0000 X-Mizu-Trace-ID: 16fdde940fcd21b6 X-Migadu-Flow: FLOW_OUT Date: Thu, 03 Dec 2026 21:06:47 +0100 From: Luka Gejak To: Mehmet Fide , Ping-Ke Shih CC: Bitterblue Smith , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, mehmet.fide@screeningeagle.com Subject: =?US-ASCII?Q?Re=3A_=5BPATCH_rtw-next_v17_3/3=5D_wifi=3A_rtw88=3A_?= =?US-ASCII?Q?time_the_countdown_downloads_from_the_TBTT?= In-Reply-To: <20261203184700.3636262-4-mehmet.fide@gmail.com> References: <20261203184700.3636262-1-mehmet.fide@gmail.com> <20261203184700.3636262-4-mehmet.fide@gmail.com> Message-ID: X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit On December 3, 2026 7:47:00 PM GMT+01:00, Mehmet Fide wrote: >From: Mehmet Fide > >The countdown steps run one beacon interval apart with no relation to >the TBTT, and a download close to a TBTT keeps beacons off the air. On >an RTL8821CU and an RTL8822CU a TBTT during the download sent no beacon >or the old one. On an RTL8822CE a TBTT up to about 100 us before the >download also kept the next beacon out, so with a count of 2 no CSA >beacon went out. > >Read the TSF and queue each step min(10 ms, interval / 4), but at least >5 ms, after the first TBTT that is at least min(10 ms, interval / 4) >away. A step that runs less than 5 ms after a TBTT, or less than that >margin before one, waits until after the TBTT. The first count is now >downloaded by the work too, not when mac80211 changes the beacon, so >the first CSA beacon carries the count after the first step, as with >drivers that fetch every beacon with ieee80211_beacon_get(). The replay >after a hardware restart still downloads at once. > >A late download delays the switch by a beacon interval instead of >taking a count off the air; stations that took the switch time from an >earlier count then switch up to that interval before the AP. At short >intervals a USB download, 6 to 17 ms, can run past the next TBTT, and >the USB chips then send a count more than once. > >The USB chips raise no TBTT interrupt, hence the TSF read. The beaconing >interface is always on port 0: rtw_core_port_switch() moves an AP >there, and an IBSS runs alone. > >Signed-off-by: Mehmet Fide >Acked-by: Ping-Ke Shih >--- > Looks good to me, Reviewed-by: Luka Gejak Best regards, Luka Gejak