Commit e1b1b581 authored by Michael Buesch's avatar Michael Buesch Committed by John W. Linville

[PATCH] bcm43xx: receive TX status on MMIO or DMA unconditionally regarding the 80211 core rev.

Signed-off-by: default avatarMichael Buesch <mbuesch@freenet.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 73733847
No related merge requests found
...@@ -1765,22 +1765,17 @@ static void bcm43xx_interrupt_tasklet(struct bcm43xx_private *bcm) ...@@ -1765,22 +1765,17 @@ static void bcm43xx_interrupt_tasklet(struct bcm43xx_private *bcm)
/* We intentionally don't set "activity" to 1, here. */ /* We intentionally don't set "activity" to 1, here. */
} }
if (dma_reason[3] & BCM43xx_DMAIRQ_RX_DONE) { if (dma_reason[3] & BCM43xx_DMAIRQ_RX_DONE) {
if (likely(bcm->current_core->rev < 5)) { if (bcm43xx_using_pio(bcm))
if (bcm43xx_using_pio(bcm)) bcm43xx_pio_rx(bcm->current_core->pio->queue3);
bcm43xx_pio_rx(bcm->current_core->pio->queue3); else
else bcm43xx_dma_rx(bcm->current_core->dma->rx_ring1);
bcm43xx_dma_rx(bcm->current_core->dma->rx_ring1); activity = 1;
activity = 1;
} else
assert(0);
} }
bcmirq_handled(BCM43xx_IRQ_RX); bcmirq_handled(BCM43xx_IRQ_RX);
if (reason & BCM43xx_IRQ_XMIT_STATUS) { if (reason & BCM43xx_IRQ_XMIT_STATUS) {
if (bcm->current_core->rev >= 5) { handle_irq_transmit_status(bcm);
handle_irq_transmit_status(bcm); activity = 1;
activity = 1;
}
//TODO: In AP mode, this also causes sending of powersave responses. //TODO: In AP mode, this also causes sending of powersave responses.
bcmirq_handled(BCM43xx_IRQ_XMIT_STATUS); bcmirq_handled(BCM43xx_IRQ_XMIT_STATUS);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment