mt76: mt7615: cleanup fw queue just for mmio devices

In order to reuse mt7615_mcu_send_firmware routine adding support for
usb devices, clean fw hw queue just for mmio devices

Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Lorenzo Bianconi
2020-03-17 17:50:15 +01:00
committed by Felix Fietkau
parent 4999db4668
commit 8ce6e40eba
+3 -1
View File
@@ -321,7 +321,9 @@ static int mt7615_mcu_send_firmware(struct mt7615_dev *dev, const void *data,
data += cur_len;
len -= cur_len;
mt76_queue_tx_cleanup(dev, MT_TXQ_FWDL, false);
if (mt76_is_mmio(&dev->mt76))
mt76_queue_tx_cleanup(dev, MT_TXQ_FWDL, false);
}
return ret;