From 03dcd5e45ed389e49e31c072c171dc5cf98fba76 Mon Sep 17 00:00:00 2001 From: idgay Date: Thu, 10 Jul 2008 21:46:14 +0000 Subject: [PATCH] fix minimum packet-length check --- tos/chips/cc2420/receive/CC2420ReceiveP.nc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2