From: Luka Gejak <luka.gejak@linux.dev>
To: Mehmet Fide <mehmet.fide@gmail.com>, Ping-Ke Shih <pkshih@realtek.com>
Cc: Bitterblue Smith <rtl8821cerfe2@gmail.com>,
linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
mehmet.fide@screeningeagle.com
Subject: Re: [PATCH rtw-next v17 3/3] wifi: rtw88: time the countdown downloads from the TBTT
Date: Thu, 03 Dec 2026 21:06:47 +0100 [thread overview]
Message-ID: <F95ADE6F-178C-436F-ACB2-B3BDDF51AA9F@linux.dev> (raw)
In-Reply-To: <20261203184700.3636262-4-mehmet.fide@gmail.com>
On December 3, 2026 7:47:00 PM GMT+01:00, Mehmet Fide
<mehmet.fide@gmail.com> wrote:
>From: Mehmet Fide <mehmet.fide@screeningeagle.com>
>
>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 <mehmet.fide@screeningeagle.com>
>Acked-by: Ping-Ke Shih <pkshih@realtek.com>
>---
>
Looks good to me,
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Best regards,
Luka Gejak
prev parent reply other threads:[~2026-12-03 20:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 18:46 [PATCH rtw-next v17 0/3] wifi: rtw88: channel switch in AP mode Mehmet Fide
2026-12-03 18:46 ` [PATCH rtw-next v17 1/3] wifi: rtw88: download the beacon the reserved page was built with Mehmet Fide
2026-12-03 18:46 ` [PATCH rtw-next v17 2/3] wifi: rtw88: support channel switch in AP mode Mehmet Fide
2026-12-03 20:05 ` Luka Gejak
2026-12-03 20:06 ` Luka Gejak
2026-12-03 20:07 ` Luka Gejak
2026-12-03 18:47 ` [PATCH rtw-next v17 3/3] wifi: rtw88: time the countdown downloads from the TBTT Mehmet Fide
2026-12-03 20:06 ` Luka Gejak [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F95ADE6F-178C-436F-ACB2-B3BDDF51AA9F@linux.dev \
--to=luka.gejak@linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=mehmet.fide@gmail.com \
--cc=mehmet.fide@screeningeagle.com \
--cc=pkshih@realtek.com \
--cc=rtl8821cerfe2@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox