mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76x2: purge MCU response queue on exit
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -429,8 +429,13 @@ int mt76x2_mcu_init(struct mt76x2_dev *dev)
|
||||
|
||||
int mt76x2_mcu_cleanup(struct mt76x2_dev *dev)
|
||||
{
|
||||
struct sk_buff *skb;
|
||||
|
||||
mt76_wr(dev, MT_MCU_INT_LEVEL, 1);
|
||||
msleep(20);
|
||||
|
||||
while ((skb = skb_dequeue(&dev->mcu.res_q)) != NULL)
|
||||
dev_kfree_skb(skb);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user