add a driver for rtl8306 switches
[openwrt.git] / target / linux / atheros / patches-2.6.28 / 110-ar2313_ethernet.patch
index 3643c963a96114609bf3844e897800843fc8f0eb..49ca66e219435e9aa420d66c96d4ebed9fe3a825 100644 (file)
@@ -25,7 +25,7 @@
  obj-$(CONFIG_DECLANCE) += declance.o
 --- /dev/null
 +++ b/drivers/net/ar231x.c
-@@ -0,0 +1,1265 @@
+@@ -0,0 +1,1264 @@
 +/*
 + * ar231x.c: Linux driver for the Atheros AR231x Ethernet device.
 + *
 +                      break;
 +              }
 +
-+              if ((status & (DMA_RX_ERROR | DMA_RX_ERR_LENGTH)) &&
-+                      (!(status & DMA_RX_LONG))) {
++              if ((status & DMA_RX_ERROR) && !(status & DMA_RX_LONG)) {
 +                      dev->stats.rx_errors++;
 +                      dev->stats.rx_dropped++;
 +