Skip to content

Commit

Permalink
b43-pio: Fix RX error path for rev>=8 devices
Browse files Browse the repository at this point in the history
This fixes the RX error path for rev>=8 devices.
The wrong register size and definitions were used.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Michael Buesch authored and John W. Linville committed Nov 11, 2009
1 parent 6a6a5c7 commit c286181
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/net/wireless/b43/pio.c
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,11 @@ static bool pio_rx_frame(struct b43_pio_rxqueue *q)
rx_error:
if (err_msg)
b43dbg(q->dev->wl, "PIO RX error: %s\n", err_msg);
b43_piorx_write16(q, B43_PIO_RXCTL, B43_PIO_RXCTL_DATARDY);
if (q->rev >= 8)
b43_piorx_write32(q, B43_PIO8_RXCTL, B43_PIO8_RXCTL_DATARDY);
else
b43_piorx_write16(q, B43_PIO_RXCTL, B43_PIO_RXCTL_DATARDY);

return 1;
}

Expand Down

0 comments on commit c286181

Please sign in to comment.