From c4370676eee4d82267e59b4b4f8aed4ea7eb9f31 Mon Sep 17 00:00:00 2001 From: nifi Date: Tue, 9 Mar 2010 10:37:47 +0000 Subject: [PATCH] Fixed CRC for updated CRC-handling in new MSPSim --- .../mspmote/interfaces/CC2420RadioPacketConverter.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/interfaces/CC2420RadioPacketConverter.java b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/interfaces/CC2420RadioPacketConverter.java index 83f77c048..f6b79215a 100644 --- a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/interfaces/CC2420RadioPacketConverter.java +++ b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/interfaces/CC2420RadioPacketConverter.java @@ -26,13 +26,10 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: CC2420RadioPacketConverter.java,v 1.14 2010/02/26 08:15:41 nifi Exp $ + * $Id: CC2420RadioPacketConverter.java,v 1.15 2010/03/09 10:37:47 nifi Exp $ */ package se.sics.cooja.mspmote.interfaces; - -import org.apache.log4j.Logger; - import se.sics.cooja.ConvertedRadioPacket; import se.sics.cooja.RadioPacket; import se.sics.mspsim.util.CCITT_CRC; @@ -44,7 +41,6 @@ import se.sics.mspsim.util.CCITT_CRC; * @author Fredrik Osterlind */ public class CC2420RadioPacketConverter { - private static Logger logger = Logger.getLogger(CC2420RadioPacketConverter.class); public static final boolean WITH_PREAMBLE = true; public static final boolean WITH_SYNCH = true; @@ -90,7 +86,6 @@ public class CC2420RadioPacketConverter { } cc2420Data[pos++] = len; cc2420CRC.setCRC(0); - cc2420CRC.add(len); /* TODO Should length be included in CRC? */ /* 4 byte X-MAC: not implemented */ if (WITH_XMAC) {