diff options
author | Michael Buesch <mb@bu3sch.de> | 2009-11-07 12:54:22 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-11 15:23:49 -0500 |
commit | c286181d5bfd8703219b954284143cfadff60b9b (patch) | |
tree | 2d3db8bc61d1d34245dd2792a351f7faba213f07 /drivers/net/wireless/b43 | |
parent | 6a6a5c7af130e703c23d23ebe3cde23e079e554e (diff) |
b43-pio: Fix RX error path for rev>=8 devices
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>
Diffstat (limited to 'drivers/net/wireless/b43')
-rw-r--r-- | drivers/net/wireless/b43/pio.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43/pio.c b/drivers/net/wireless/b43/pio.c index 3105f235303a..7d2550269ede 100644 --- a/drivers/net/wireless/b43/pio.c +++ b/drivers/net/wireless/b43/pio.c | |||
@@ -761,7 +761,11 @@ data_ready: | |||
761 | rx_error: | 761 | rx_error: |
762 | if (err_msg) | 762 | if (err_msg) |
763 | b43dbg(q->dev->wl, "PIO RX error: %s\n", err_msg); | 763 | b43dbg(q->dev->wl, "PIO RX error: %s\n", err_msg); |
764 | b43_piorx_write16(q, B43_PIO_RXCTL, B43_PIO_RXCTL_DATARDY); | 764 | if (q->rev >= 8) |
765 | b43_piorx_write32(q, B43_PIO8_RXCTL, B43_PIO8_RXCTL_DATARDY); | ||
766 | else | ||
767 | b43_piorx_write16(q, B43_PIO_RXCTL, B43_PIO_RXCTL_DATARDY); | ||
768 | |||
765 | return 1; | 769 | return 1; |
766 | } | 770 | } |
767 | 771 | ||