From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.119 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796328414; b=CvZ/NPxpGY2AFrElWj8FXcGOgqJ66Tlx6ao9c3IcTMQpiDxHoVV/2uM4YmwxKJnLUpv1 0GX4E4/n8mm7kuRoQXVmxGzh3GQirUnIOho1jJy+/txySuurLTqrG3Li+6T8ioxz6W5K+ npBqvcDrRnNQr6Lck3IuHSvLQAfI0mWG69IcMkamj9qeFtb2ZVas19aCQLmr6R8u46YXh A/6aRUXVWe/ZgPWzYG075UfRvLxZes++3mScHk2yMKaIfvVZa7HYQZ+5mpSv6kcTWYzzU bR4HAdIYVzj5nKvuct+GQBq62KF26PvMp63kqlZnSxY6iDXES5Kad/fb+fvlXfkvjmA== 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=JB+/DNSI2CQRafxTRB/UCPNBQbiErKwKvlDKXtHzPdUVNpXBM6ynkxQgeaKwjf4oWbjB 2KSCeQhBmbFi0Yi4M9iJzuDRfcUuKroZKG7J/A6s2ZLhaTxfn7QnuhFavVCmjXMyXoPgr NWfweg00M5DpGNEeh617No4KMoutZoDZ6vghzAkKzvqf0Da/RolwyDgBanX+t19vdrwGX 0Dd/21LJexis7XL5bp+Vf0BVmqY5/lXWWUjdPtyfB4jbo2xQKYP45nhGCJ4/u5xgHYiBQ xhyMayb47Xv+Z+ZzZbq8/guNQdjsaenETLO62Rv+CbH7w+WUBq26LaSeuJixiS4z7AQ== 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.119 Received: from mta1.migadu.com (out-119.mta1.migadu.com [95.215.58.119]) (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 0A4FC606A32C for ; Thu, 3 Dec 2026 20:06:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0A4FC606A32C 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-wireless@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-wireless@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-wireless@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