#7647·linux

Backport 80119a77e5b0 (rtw89_usb: fix TX flow control) to rpi-6.18.y — RTL8851BU/8852BU USB AP data-path wedges

Author: ebowwaCreated Sep 25, 2026Updated Sep 25, 2026

Backport 80119a77e5b0 (rtw89_usb: fix TX flow control by tracking in-flight URBs) to rpi-6.18.y — RTL8851BU/8852BU USB data-path wedges

Request: backport 80119a77e5b0 ("wifi: rtw89: usb: fix TX flow control by tracking in-flight URBs", landed in mainline 2026-04-02) to the rpi-6.18.y branch. The commit carries no Cc: stable tag, so the stable process will never pick it up on its own — and 6.18.50+rpt verifiably lacks the fix (no tx_inflight[] in struct rtw89_usb).

The bug users hit

rtw89_usb_ops_check_and_reclaim_tx_resource() returns a hardcoded placeholder 42 instead of actual TX capacity. That violates mac80211's flow-control contract: no backpressure → unbounded URB accumulation under sustained TX → the USB data path stalls while beacons (separate queue) keep going. User-visible effect on an access point — or any busy client — is the worst kind: every device shows "connected, full signal, zero internet", the Pi itself stays perfectly reachable, and dmesg floods with timed out to flush queues. Recovery requires a driver reload, USB rebind, or reboot.

For an AP the sustained-TX pressure is simply all downstream client traffic, so AP duty (hostapd on an 8852BU, in our case) hits this reliably: our box wedged every 2–5 minutes under load, and idle wedges too once the driver degraded.

Chips affected

The placeholder applies to all rtw89_usb devices; the fix's tested list covers RTL8851BU / RTL8852BU / RTL8832AU / RTL8852AU / RTL8922AU. These modules are enabled in Pi defconfigs since #7096 (and there is active user interest, cf. #7646), so the exposure is real, not theoretical.

Verification

Backported to 6.18.50+rpt-rpi-v8 on-device (built against the exact kernel source commit, Module.symvers from the distro headers — no kernel rebuild needed, single module set into /lib/modules/.../updates/). Result, same evening, under sustained 80–104 Mbit/s load: flush-counter flat, zero data-path stalls, client ARP continuous — versus a re-wedge every 2–5 minutes before the patch. The upstream commit also carries independent throughput/regression testing (855 Mbit/s 60-second soak, 0 retransmits, no regression across 4 test profiles).

References

Happy to test a candidate backport branch on the affected hardware.

Our field-report comments on the driver threads