]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
fix minimum packet-length check
authoridgay <idgay>
Thu, 10 Jul 2008 21:46:14 +0000 (21:46 +0000)
committeridgay <idgay>
Thu, 10 Jul 2008 21:46:14 +0000 (21:46 +0000)
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);