[PATCH wireless v3 0/2] wifi: rt2x00: fix TX queue flush and TX_STA_FIFO teardown

From: Bin Luo via B4 Relay

Date: Fri Dec 04 2026 - 01:07:24 EST


This v3 resends the v2 series cleanly via b4 web relay (v2 was
line-wrapped by Gmail and failed to apply on Patchwork); there are no
code changes from v2.

Per Stanislaw Gruszka's review on v1:
1. Patch 1/2 sets DEVICE_STATE_FLUSHING in rt2x00queue_flush_queues()
so pending TX entries time out within 50 ms and drain cleanly during
disable_radio() before work/timer cancellation.
2. Patch 2/2 guards TX_STA_FIFO URB resubmission on non-zero status and
teardown in rt2800usb and kills anchored URBs after stopping work and
timers in rt2x00usb_uninitialize().

The QEMU dummy_hcd + raw_gadget RT2872 test harness is available at:
https://gist.github.com/1121984919/2193f0ccb5af3539e96d55e5d43728fb

Bin Luo (University of Electronic Science and Technology of China) (2):
wifi: rt2x00: set DEVICE_STATE_FLUSHING in rt2x00queue_flush_queues()
wifi: rt2x00: prevent TX_STA_FIFO URB resubmission on error and teardown

drivers/net/wireless/ralink/rt2x00/rt2800usb.c | 24 ++++++++++++++----------
drivers/net/wireless/ralink/rt2x00/rt2x00queue.c | 4 ++++
drivers/net/wireless/ralink/rt2x00/rt2x00usb.c | 2 +-
3 files changed, 19 insertions(+), 11 deletions(-)
--
2.43.0