X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fcc2420%2Freceive%2FCC2420ReceiveP.nc;h=710d0d7e9d4757ccf80b098edf1210352b7ae1ab;hb=03dcd5e45ed389e49e31c072c171dc5cf98fba76;hp=d21f76fd61c830ee0992ba4cbe2f359cc5afa486;hpb=83bd13daa40b91cc60bc16f7e68dea6c57823e41;p=tinyos-2.x.git diff --git a/tos/chips/cc2420/receive/CC2420ReceiveP.nc b/tos/chips/cc2420/receive/CC2420ReceiveP.nc index d21f76fd..710d0d7e 100644 --- a/tos/chips/cc2420/receive/CC2420ReceiveP.nc +++ b/tos/chips/cc2420/receive/CC2420ReceiveP.nc @@ -214,7 +214,7 @@ implementation { if(rxFrameLength <= MAC_PACKET_SIZE) { if(rxFrameLength > 0) { - if(rxFrameLength > SACK_HEADER_LENGTH) { + 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);