From: Ping-Ke Shih <pkshih@realtek.com>
To: Mehmet Fide <mehmet.fide@gmail.com>
Cc: Luka Gejak <luka.gejak@linux.dev>,
Bitterblue Smith <rtl8821cerfe2@gmail.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"mehmet.fide@screeningeagle.com" <mehmet.fide@screeningeagle.com>
Subject: RE: [PATCH rtw-next v14 3/3] wifi: rtw88: time the countdown downloads from the TBTT
Date: Fri, 27 Nov 2026 06:34:01 +0000 [thread overview]
Message-ID: <eb1f2c3f74e149d6870b759bf0246a2f@realtek.com> (raw)
In-Reply-To: <20261121193644.603289-4-mehmet.fide@gmail.com>
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>
prev parent reply other threads:[~2026-11-27 6:34 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-21 19:36 [PATCH rtw-next v14 0/3] wifi: rtw88: channel switch in AP mode Mehmet Fide
2026-11-21 19:36 ` [PATCH rtw-next v14 1/3] wifi: rtw88: download the beacon the reserved page was built with Mehmet Fide
2026-11-21 19:36 ` [PATCH rtw-next v14 2/3] wifi: rtw88: support channel switch in AP mode Mehmet Fide
2026-11-24 0:24 ` Luka Gejak
2026-11-24 8:31 ` Mehmet Fide
2026-11-24 9:13 ` Ping-Ke Shih
2026-11-24 9:27 ` Mehmet Fide
2026-11-24 9:34 ` Ping-Ke Shih
2026-11-27 6:23 ` Ping-Ke Shih
2026-11-27 14:14 ` Mehmet Fide
2026-11-30 1:45 ` Ping-Ke Shih
2026-11-21 19:36 ` [PATCH rtw-next v14 3/3] wifi: rtw88: time the countdown downloads from the TBTT Mehmet Fide
2026-11-24 0:24 ` Luka Gejak
2026-11-24 8:31 ` Mehmet Fide
2026-11-24 9:09 ` Ping-Ke Shih
2026-11-24 9:50 ` Luka Gejak
2026-11-27 6:34 ` Ping-Ke Shih [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=eb1f2c3f74e149d6870b759bf0246a2f@realtek.com \
--to=pkshih@realtek.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=luka.gejak@linux.dev \
--cc=mehmet.fide@gmail.com \
--cc=mehmet.fide@screeningeagle.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.