]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/cc2420/receive/CC2420ReceiveP.nc
fix minimum packet-length check
[tinyos-2.x.git] / tos / chips / cc2420 / receive / CC2420ReceiveP.nc
index d21f76fd61c830ee0992ba4cbe2f359cc5afa486..710d0d7e9d4757ccf80b098edf1210352b7ae1ab 100644 (file)
@@ -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);