Skip to content

Commit bdeac78

Browse files
committed
wifi: mt76: free pending offchannel tx frames on wcid cleanup
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/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
1 parent 065c79d commit bdeac78

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
@@ -1716,6 +1716,10 @@ void mt76_wcid_cleanup(struct mt76_dev *dev, struct mt76_wcid *wcid)
17161716
skb_queue_splice_tail_init(&wcid->tx_pending, &list);
17171717
spin_unlock(&wcid->tx_pending.lock);
17181718

1719+
spin_lock(&wcid->tx_offchannel.lock);
1720+
skb_queue_splice_tail_init(&wcid->tx_offchannel, &list);
1721+
spin_unlock(&wcid->tx_offchannel.lock);
1722+
17191723
spin_unlock_bh(&phy->tx_lock);
17201724

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

0 commit comments

Comments
 (0)