Bugfix: the Chameleon header parser modules should not clear the packet attributes, because the MAC or radio layers may have added attributes already
This commit is contained in:
parent
e1ef13dad6
commit
b15198b9a8
2 changed files with 3 additions and 5 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: chameleon-bitopt.c,v 1.5 2008/07/03 07:38:52 adamdunkels Exp $
|
||||
* $Id: chameleon-bitopt.c,v 1.6 2009/02/10 23:49:58 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -295,7 +295,6 @@ unpack_header(void)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
rimebuf_attr_clear();
|
||||
hdrptr = rimebuf_dataptr();
|
||||
hdrbytesize = c->hdrsize / 8 + ((c->hdrsize & 7) == 0? 0: 1);
|
||||
rimebuf_hdrreduce(hdrbytesize);
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: chameleon-raw.c,v 1.3 2008/07/03 21:34:12 adamdunkels Exp $
|
||||
* $Id: chameleon-raw.c,v 1.4 2009/02/10 23:49:58 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -74,8 +74,7 @@ input(void)
|
|||
PRINTF("chameleon-raw: input: channel %d not found\n", hdr->channel);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
rimebuf_attr_clear();
|
||||
|
||||
hdrptr = rimebuf_dataptr();
|
||||
rimebuf_hdrreduce(c->hdrsize);
|
||||
byteptr = bitptr = 0;
|
||||
|
|
Loading…
Reference in a new issue