From: Ahmet Zeren via B4 Relay <devnull+niko3x.proton.me@kernel.org>
To: Jes Sorensen <Jes.Sorensen@gmail.com>
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
Ping-Ke Shih <pkshih@realtek.com>,
Ahmet Zeren <niko3x@proton.me>
Subject: [PATCH rtw-next v2 0/2] wifi: rtl8xxxu: report real TX status on RTL8188CU/RTL8192CU
Date: Sun, 22 Nov 2026 09:00:37 +0300 [thread overview]
Message-ID: <20261122-b4-tx-status-v2-0-bbfdbd880acf@proton.me> (raw)
rtl8xxxu reports every frame as acked as soon as its USB transfer
completes, so mac80211 and userspace never learn that a frame was lost.
Patch 1 stops reporting frames sent with IEEE80211_TX_CTL_NO_ACK as
acked.
Patch 2 uses the CCX TX report of the RTL8188CU/RTL8192CU firmware to
report the real ACK status and retry count. These chips post C2H events
in the REG_C2HEVT_MSG_NORMAL mailbox, which has to be polled, and the
report does not identify the frame, so only one frame at a time requests
a report. Other frames are reported as before. The vendor driver uses
the same report (C2H_CCX_TX_RPT, struct txrpt_ccx_8192c); the firmware
in linux-firmware (v88.2) sends it.
Gen2 chips and the RTL8188EU have their own report formats and are not
covered here.
Testing on RTL8192CU (0bda:8178), by injecting unicast frames and reading
the TX status mac80211 hands back to a monitor interface: frames to a
present station are reported acked, with the retries that happened;
frames to an absent station are reported failed with the hardware's
retry count, including when the retries take seconds; frames sent right
after are not confused with an earlier report. Interface down/up and
module removal with a report pending were also tested. checkpatch --strict,
W=1 and sparse are clean for each patch.
AI tool use (Documentation/process/generated-content.rst): the patches
were written with help from Claude Code (Claude Opus 5.5). It was asked
to research how these chips report TX status (vendor driver, rtlwifi,
rtw88), confirm the report format on the hardware, write the patches
and run the tests above. I have reviewed and tested the changes and take
responsibility for them.
---
Changes in v2:
- Patch 2: move the C2H event defines to regs.h under REG_C2HEVT_CLEAR
and REG_C2HEVT_MSG_NORMAL; name the report fields as offsets from the
mailbox and as masks.
- Patch 2: rename the work to rtl8xxxu_tx_report_poll_work().
- Patch 2: group the new priv fields, order .has_c2hevt_tx_report as in
struct rtl8xxxu_fileops, fix declaration order.
- Collect Reviewed-by from Ping-Ke.
- Link to v1: https://patch.msgid.link/20261120-b4-tx-status-v1-0-abdab21c77fe@proton.me
---
Ahmet Zeren (2):
wifi: rtl8xxxu: don't report frames sent without ACK as acked
wifi: rtl8xxxu: report real TX status on RTL8188CU/RTL8192CU
drivers/net/wireless/realtek/rtl8xxxu/8192c.c | 1 +
drivers/net/wireless/realtek/rtl8xxxu/core.c | 128 ++++++++++++++++++++++-
drivers/net/wireless/realtek/rtl8xxxu/regs.h | 9 ++
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 6 ++
4 files changed, 142 insertions(+), 2 deletions(-)
---
base-commit: 0bdc579dbfc251a6b6838ee9459b6771b948c617
change-id: 20261120-b4-tx-status-df4722e9679a
Best regards,
--
Ahmet Zeren <niko3x@proton.me>
next reply other threads:[~2026-11-22 6:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-22 6:00 Ahmet Zeren via B4 Relay [this message]
2026-11-22 6:00 ` [PATCH rtw-next v2 1/2] wifi: rtl8xxxu: don't report frames sent without ACK as acked Ahmet Zeren via B4 Relay
2026-11-22 6:00 ` [PATCH rtw-next v2 2/2] wifi: rtl8xxxu: report real TX status on RTL8188CU/RTL8192CU Ahmet Zeren via B4 Relay
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=20261122-b4-tx-status-v2-0-bbfdbd880acf@proton.me \
--to=devnull+niko3x.proton.me@kernel.org \
--cc=Jes.Sorensen@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=niko3x@proton.me \
--cc=pkshih@realtek.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
all inboxes | Powered by JetHome®