[Tinyos-devel] cc2420 radio stack and deputy
Philip Levis
pal at cs.stanford.edu
Mon Jun 23 14:11:44 PDT 2008
On Jun 23, 2008, at 1:48 PM, David Gay wrote:
> 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?
Seems like a good bug fix to check in. Please put it on the head, we
can then test it on rc3.
Phil
More information about the Tinyos-devel
mailing list