Skip to content

Commit

Permalink
[PATCH] bcm43xx: receive TX status on MMIO or DMA unconditionally reg…
Browse files Browse the repository at this point in the history
…arding the 80211 core rev.

Signed-off-by: Michael Buesch <mbuesch@freenet.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Michael Buesch authored and John W. Linville committed Mar 27, 2006
1 parent 7373384 commit e1b1b58
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions drivers/net/wireless/bcm43xx/bcm43xx_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1765,22 +1765,17 @@ static void bcm43xx_interrupt_tasklet(struct bcm43xx_private *bcm)
/* We intentionally don't set "activity" to 1, here. */
}
if (dma_reason[3] & BCM43xx_DMAIRQ_RX_DONE) {
if (likely(bcm->current_core->rev < 5)) {
if (bcm43xx_using_pio(bcm))
bcm43xx_pio_rx(bcm->current_core->pio->queue3);
else
bcm43xx_dma_rx(bcm->current_core->dma->rx_ring1);
activity = 1;
} else
assert(0);
if (bcm43xx_using_pio(bcm))
bcm43xx_pio_rx(bcm->current_core->pio->queue3);
else
bcm43xx_dma_rx(bcm->current_core->dma->rx_ring1);
activity = 1;
}
bcmirq_handled(BCM43xx_IRQ_RX);

if (reason & BCM43xx_IRQ_XMIT_STATUS) {
if (bcm->current_core->rev >= 5) {
handle_irq_transmit_status(bcm);
activity = 1;
}
handle_irq_transmit_status(bcm);
activity = 1;
//TODO: In AP mode, this also causes sending of powersave responses.
bcmirq_handled(BCM43xx_IRQ_XMIT_STATUS);
}
Expand Down

0 comments on commit e1b1b58

Please sign in to comment.