From: Mehmet Fide <mehmet.fide@gmail.com>
To: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Cc: Ping-Ke Shih <pkshih@realtek.com>,
linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
Mehmet Fide <mehmet.fide@screeningeagle.com>
Subject: Re: [PATCH rtw-next] wifi: rtw88: usb: send broadcast/multicast via the AC queues
Date: Thu, 13 Aug 2026 20:50:21 +0200 [thread overview]
Message-ID: <20260813185021.2290877-1-mehmet.fide@gmail.com> (raw)
In-Reply-To: <12eaffd0-9d0f-44bd-8163-d05b6a3df611@gmail.com>
From: Mehmet Fide <mehmet.fide@screeningeagle.com>
Hello Bitterblue,
> Could you check what the official driver is doing in the same situation?
>
> https://github.com/morrownr/88x2bu-20210702
Good timing, we had already done exactly that comparison before your
mail arrived. That driver was our working reference on the same bench
throughout the investigation (5/5 reconnect cycles where in-tree fails
0/5), and we went through its AP transmit path to understand why it is
immune. It handles this quite differently, in five ways:
1. bmc frames are buffered only while a station is actually dozing
(sta_dz_bitmap check in core/rtw_xmit.c, rtw_xmit_ap_enqueue). With
no sleeper present they leave immediately through the normal AC
path, which is what my patch restores for rtw88.
2. The buffering happens in software (the bmc sta's sleep_q), not in
the hardware high queue. The hardware HIQ receives at most one DTIM
burst at a time (chk_bmc_sleepq_hdl), so it can never accumulate
into the page pool the way rtw88's standing high queue does.
3. Even then, a filter decides what may ride the HIQ at all. The
default (rtw_hiq_filter=1, "allow special") lets only ARP, EAPOL and
DHCP through; mDNS/SSDP chatter never enters the high queue. The
rest of the buffered frames go out through the normal queues when
the burst is released.
4. The driver owns the TIM bit itself: it sets it when it starts
buffering, pushes the updated beacon, and clears it only after both
the software queue and the hardware HIQ are empty, polled through
HW_VAR_CHK_HI_QUEUE_EMPTY. It does not depend on a beacon download
whose pages come from the same pool the backlog is exhausting.
5. MORE_DATA is set on every burst frame except the last one, which
carries 0 and terminates the burst. rtw88 sets it on every high
queue frame including the last. That may be part of why I measured
the burst fetch not happening here even with BIT_TCR_UPDATE_HGQMD
set: the hardware never sees the end marker the vendor code
provides.
So the field-proven driver never routes bulk multicast through the high
queue either, sleeper or not; the high queue is a small, filtered,
explicitly terminated DTIM burst buffer for it, not a transport path.
Given that, I still think routing bmc through the AC queues is the
right minimal fix for rtw88 USB. If you want to keep buffered delivery
for dozing stations I am happy to work on the fuller shape, meaning PS
tracking plus a software staging queue released at DTIM, but that is a
much bigger change and the current behavior is a hard AP breakage.
Thanks,
Mehmet
prev parent reply other threads:[~2026-08-13 18:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-13 13:18 [PATCH rtw-next] wifi: rtw88: usb: send broadcast/multicast via the AC queues Mehmet Fide
2026-08-13 15:07 ` Bitterblue Smith
2026-08-13 15:52 ` Mehmet Fide
2026-08-13 18:34 ` Bitterblue Smith
2026-08-13 18:50 ` Mehmet Fide [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=20260813185021.2290877-1-mehmet.fide@gmail.com \
--to=mehmet.fide@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--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 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.