mt7603: mac: fix register configuration in mt7603_rx_dma_busy()

Signed-off-by: Lorenzo Bianconi <[email protected]>
This commit is contained in:
Lorenzo Bianconi
2017-09-09 17:45:15 +02:00
committed by Felix Fietkau
parent cb83f3329f
commit 21f20b46e3
+2 -2
View File
@@ -1178,9 +1178,9 @@ static bool mt7603_rx_dma_busy(struct mt7603_dev *dev)
if (!(mt76_rr(dev, MT_WPDMA_GLO_CFG) & MT_WPDMA_GLO_CFG_RX_DMA_BUSY))
return false;
mt76_wr(dev, 0x4244, 0x98000000);
mt76_wr(dev, 0x4244, 0x28000000);
val = mt76_rr(dev, 0x4244);
return !!(val & BIT(9));
return !!(val & BIT(8));
}
static bool mt7603_tx_dma_busy(struct mt7603_dev *dev)