[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/cc2420/receive CC2420ReceiveP.nc, 1.14, 1.15

David Gay idgay at users.sourceforge.net
Thu Jul 10 14:46:16 PDT 2008


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

Modified Files:
	CC2420ReceiveP.nc 
Log Message:
fix minimum packet-length check

Index: CC2420ReceiveP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420/receive/CC2420ReceiveP.nc,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** CC2420ReceiveP.nc	23 Jun 2008 23:40:21 -0000	1.14
--- CC2420ReceiveP.nc	10 Jul 2008 21:46:14 -0000	1.15
***************
*** 215,219 ****
          if(rxFrameLength <= MAC_PACKET_SIZE) {
            if(rxFrameLength > 0) {
!             if(rxFrameLength > SACK_HEADER_LENGTH) {
                // This packet has an FCF byte plus at least one more byte to read
                call RXFIFO.continueRead(buf + 1, SACK_HEADER_LENGTH);
--- 215,219 ----
          if(rxFrameLength <= MAC_PACKET_SIZE) {
            if(rxFrameLength > 0) {
!             if(rxFrameLength >= CC2420_SIZE) {
                // This packet has an FCF byte plus at least one more byte to read
                call RXFIFO.continueRead(buf + 1, SACK_HEADER_LENGTH);



More information about the Tinyos-2-commits mailing list