RE: [PATCH rtw-next v8 3/3] wifi: rtw88: time the countdown downloads from the TBTT

From: Ping-Ke Shih

Date: Wed Oct 21 2026 - 21:58:47 EST


Mehmet Fide <mehmet.fide@xxxxxxxxx> wrote:
> From: Mehmet Fide <mehmet.fide@xxxxxxxxxxxxxxxxxx>
>
> The countdown downloads are queued one beacon interval apart, with no
> relation to the TBTT. A download that runs late past the next TBTT
> leaves a count out of the air.
>
> Queue each download 10 ms after the next TBTT, read from the TSF, so it
> may run late by almost a beacon interval; a later one is followed by
> the next at once. A TSF jump, an IBSS merge or a reset, restarts the
> schedule from the next TBTT.
>
> A TBTT just before the start may already have sent the first count; it
> is taken as the one that did, so no count is sent twice.
>
> The USB chips raise no TBTT interrupt, so the TSF register is read. The
> beaconing interface is always on port 0: rtw_core_port_switch() moves
> an AP there, an IBSS runs alone.
>
> Signed-off-by: Mehmet Fide <mehmet.fide@xxxxxxxxxxxxxxxxxx>

Acked-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx>