[PATCH 0/2] wifi: mt76: mt7996: fix TWT and MLO teardown races

From: Jiale Yao

Date: Sun Oct 18 2026 - 06:53:51 EST


Fix two teardown issues in mt7996.

The first patch removes a TWT flow from the scheduler list when the
firmware rejects the agreement. Without this, the flow slot remains on
the list while it is available for reuse, which can corrupt the list.

The second patch clears every link WCID of an MLD station before the
network synchronization in mac80211. The generic callback only clears
the default WCID and allows the RX path to retain pointers to the other
links while station removal proceeds.

The patches address independent paths and remain independently
buildable.

Jiale Yao (2):
wifi: mt76: mt7996: unlink TWT flow if MCU rejects agreement
wifi: mt76: mt7996: clear all link WCIDs before RCU removal

.../net/wireless/mediatek/mt76/mt7996/mac.c | 4 ++-
.../net/wireless/mediatek/mt76/mt7996/main.c | 27 ++++++++++++++++++-
2 files changed, 29 insertions(+), 2 deletions(-)

--
2.34.1