BPI-R4 + MT7996 MLO: eMLSR clients stall TX, firmware holds frames on the inactive link (please forward to MediaTek)

Hi BPI team,

We have tracked down a recurring Wi-Fi stall on BPI-R4 with the MT7996 card running MLO. The driver-side workarounds are done and posted upstream, but the remaining questions can only be answered by MediaTek’s Wi-Fi firmware team. Could you please forward this report to MediaTek through your customer channel?

Environment

Item Value
Board Banana Pi BPI-R4
Wi-Fi card Tri-band MT7996 (PCI ID 14c3:7990), HW/SW version 0x8a108a10
Firmware WM / WA / DSP 20260721
System OpenWrt (self-built, Linux 7.3.1)
Driver openwrt/mt76 master 10be1829 (2026-11-27)
AP config One AP MLD, 2.4 GHz + 5 GHz + 6 GHz links
Clients Two phones, both on 2.4 + 5 GHz links; one is an iPhone using eMLSR (receives on one link at a time)

Symptom

  • The client keeps transmitting but receives nothing; pages and apps just spin.
  • The driver backlog for that station grows from tens to hundreds of frames (up to 595); the head of the AC queue on one link never moves.
  • Only a disconnect/reconnect recovers it.
  • While stuck, the backlog can fill dnsmasq’s UDP send buffer and break DNS for the whole LAN (same as openwrt/mt76 #1195).
  • 12 stalls in 7 days (2026-11-25 to 12-01), each recovered only by our own watchdog.

Root cause (as seen from the driver side)

The firmware only releases a link’s frames while the client is receiving on that link, and an eMLSR client receives on only one link at a time. Frames that land on the link the client is not on stay held. We found two ways this happens:

  1. TID-parity link mapping: mt76 maps an MLO station’s data frames to links by TID parity, regardless of which link the client is actually on, so some frames go to the inactive link.
  2. Frames left behind after a link switch: when the client moves from link A to link B, frames already queued on A are held by the firmware indefinitely — neither sent nor dropped.

In both cases the held frames consume MT_MAX_NON_AQL_PKT (16), which is shared across all links of the MLD via the primary wcid. Once it is full, the driver stops TX on every link, including the one the client is using.

Also, the per-link power-save state reported via PS_SYNC cannot tell which link the client is on: both links always toggle together, including the link the client never transmits on.

Evidence

Snapshots taken during two stalls (driver debugfs hw-queues / aqm plus our per-link debug output, two samples 2 s apart). MACs and device names removed.

Item 12-01 17:46 (path 1) 12-02 12:19 (path 2)
Driver path 1 not fixed path 1 fixed
Link the client is actually on 2.4 GHz (last RX 20 ms ago) 5 GHz (last RX 70 ms ago)
Link holding the frames 5 GHz (no RX for 13 s) 2.4 GHz (no RX for 25 s)
Driver TX queue points to 5 GHz (wrong) 5 GHz (correct)
AC3 queue on the held link 41 → 47 frames, head fid unchanged for 2 s 36 → 39 frames, head fid unchanged for 2 s
In-flight non-AQL (limit 16) 42 37
Driver backlog 595 frames 135 frames
Recovery watchdog disconnect watchdog disconnect

For the first client, the PS state of the two links toggled 26,900 times each within 54 minutes of association, perfectly in sync, including the link the client never used.

What we have done

  1. Driver patches (3): cap non-AQL frames queued for a sleeping station; steer data to the link the client was last heard on (within 2 s); when the client has left a link that still has frames queued, send STA_REC_PS_LEAVE to that link so the firmware releases them. Patches 1+2 ran 21 h with one stall — exactly the case patch 3 addresses. Patch 3 went live on 12-02 and is under observation.
  2. Watchdog: if a station has a backlog but its TX counter has not moved for 6 s, force a reconnect, which limits each stall to a dozen seconds or so.
  3. Reported upstream: RFC sent to linux-wireless, Cc the mt76 maintainers and MediaTek driver engineers: RFC PATCH 0/3. Related: openwrt/mt76 #1195, #1196.

Questions for MediaTek’s firmware team

  1. Is holding the frames by design? When an eMLSR client is active on link A and link B is in power save, the firmware holds B’s frames indefinitely. Is that expected? Is there a firmware mechanism to move those frames to another link, or to flush a link’s queue? That would be cleaner than our STA_REC_PS_LEAVE workaround.
  2. Is the PS_SYNC power-save state meant to be per link? For an MLD client, both links always toggle together, including the link the client never transmits on. Is this a firmware bug, or is it not per-link by design?
  3. Is STA_REC_PS_LEAVE valid for regular clients? Is this command valid and safe on MT7996 firmware for regular (non-4-address) clients, including MLO links? Upstream currently uses it only for 4-address stations.

We can provide full snapshots, kernel logs, the driver patches, and a reproduction setup. We would also appreciate knowing whether the BPI-R4 BSP already contains a firmware or driver fix for this.

Contact: Zichao-xu <[email protected]>

Thanks!

1 Like