changeset 1806:4c61bc04e68d

* src/if_quicc.c (quicc_eth_RxEvent): remove CRC from the packet.
author asl
date Wed, 13 Oct 2004 20:13:38 +0000
parents 73d430b9b0ca
children 950c4e9bf178
files packages/devs/eth/powerpc/quicc/current/ChangeLog packages/devs/eth/powerpc/quicc/current/src/if_quicc.c
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/packages/devs/eth/powerpc/quicc/current/ChangeLog
+++ b/packages/devs/eth/powerpc/quicc/current/ChangeLog
@@ -1,3 +1,7 @@
+2004-10-11  Harald Kuethe  <hkuethe@controlware.de>
+
+	* src/if_quicc.c (quicc_eth_RxEvent): remove CRC from the packet.
+
 2003-08-19  Gary Thomas  <gary@mlbassoc.com>
 
 	* src/if_quicc.c (quicc_eth_init): Use 'quicc_eth_command()'
--- a/packages/devs/eth/powerpc/quicc/current/src/if_quicc.c
+++ b/packages/devs/eth/powerpc/quicc/current/src/if_quicc.c
@@ -645,8 +645,8 @@ quicc_eth_RxEvent(struct eth_drv_sc *sc)
             // OK frame - Prepare for callback
             qi->rxbd = rxbd;  // Save for callback
             set_led(LED_RxACTIVE);
-			
-            (sc->funs->eth_drv->recv)(sc, rxbd->length);
+            // Remove the CRC from the end
+            (sc->funs->eth_drv->recv)(sc, rxbd->length - 4);
 			
             clear_led(LED_RxACTIVE);
         }