[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/cc2420 CC2420ActiveMessageP.nc, 1.9, 1.10

dmm rincon at users.sourceforge.net
Wed Jan 9 11:44:39 PST 2008


Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7903

Modified Files:
	CC2420ActiveMessageP.nc 
Log Message:
Added a secondary CRC check at the top of the stack while investigating the check at the bottom.

Index: CC2420ActiveMessageP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** CC2420ActiveMessageP.nc	13 Sep 2007 23:10:16 -0000	1.9
--- CC2420ActiveMessageP.nc	9 Jan 2008 19:44:37 -0000	1.10
***************
*** 165,168 ****
--- 165,173 ----
    /***************** SubReceive Events ****************/
    event message_t* SubReceive.receive(message_t* msg, void* payload, uint8_t len) {
+     
+     if(!(call CC2420PacketBody.getMetadata(msg))->crc) {
+       return msg;
+     }
+     
      if (call AMPacket.isForMe(msg)) {
        return signal Receive.receive[call AMPacket.type(msg)](msg, payload, len - CC2420_SIZE);



More information about the Tinyos-2-commits mailing list