1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #209 from BytesGalore/fix_payload_offset

Fix payload offset
This commit is contained in:
Oleg Hahm 2013-10-09 06:33:08 -07:00
commit 2f5c28bf46
2 changed files with 2 additions and 2 deletions

View File

@ -230,7 +230,7 @@ uint8_t ieee802154_frame_read(uint8_t *buf, ieee802154_frame_t *frame,
frame->payload = (buf + index);
hdrlen = index;
frame->payload_len = (len - hdrlen);
frame->payload_len = (len - hdrlen - IEEE_802154_FCS_LEN);
return hdrlen;
}

View File

@ -143,7 +143,7 @@ void recv_ieee802154_frame(void)
p = (radio_packet_t *) m.content.ptr;
hdrlen = ieee802154_frame_read(p->data, &frame, p->length);
length = p->length - hdrlen;
length = p->length - hdrlen - IEEE_802154_FCS_LEN;
/* deliver packet to network(6lowpan)-layer */
lowpan_read(frame.payload, length, (ieee_802154_long_t *)&frame.src_addr,