Skip to content

Commit 468437a

Browse files
committed
wifi: mt76: free pending offchannel tx frames on wcid cleanup
jira KERNEL-238 Rebuild_History Non-Buildable kernel-6.12.0-124.16.1.el10_1 commit-author Felix Fietkau <nbd@nbd.name> commit bdeac78 Avoid leaking them or keeping the wcid on the tx list Fixes: 0b3be9d ("wifi: mt76: add separate tx scheduling queue for off-channel tx") Link: https://patch.msgid.link/20250827085352.51636-5-nbd@nbd.name Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commit bdeac78) Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent 89ce674 commit 468437a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/net/wireless/mediatek/mt76/mac80211.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,6 +1677,10 @@ void mt76_wcid_cleanup(struct mt76_dev *dev, struct mt76_wcid *wcid)
16771677
skb_queue_splice_tail_init(&wcid->tx_pending, &list);
16781678
spin_unlock(&wcid->tx_pending.lock);
16791679

1680+
spin_lock(&wcid->tx_offchannel.lock);
1681+
skb_queue_splice_tail_init(&wcid->tx_offchannel, &list);
1682+
spin_unlock(&wcid->tx_offchannel.lock);
1683+
16801684
spin_unlock_bh(&phy->tx_lock);
16811685

16821686
while ((skb = __skb_dequeue(&list)) != NULL) {

0 commit comments

Comments
 (0)