[Tinyos-devel] cc2420 radio stack and deputy

David Gay dgay42 at gmail.com
Mon Jun 23 13:48:24 PDT 2008


On Fri, Jun 20, 2008 at 4:01 PM, David Gay <dgay42 at gmail.com> wrote:
> - First, in CC2420TransmitP.nc, m_msg was used in a bunch of places
> where it could be null (just after boot). I added the obvious if's to
> deal with that.
>
> - Second, the lower-levels of the CC2420 radio stack were passing the
> total packet length (well, the value of the packet's length byte
> actually) as the payload length, which caused a runtime error for
> packets where payload-size + header-size > max-payload size. As I
> couldn't see any good reason why this was being done, I propose the
> following patch which passes the correct payload length in
> CC2420ReceiveP. There was also a symmetric misuse of the length in the
> send path (starting in CC2420ActiveMessageP), which this patch also
> fixes:

No objections?

David


More information about the Tinyos-devel mailing list