X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Fnet%2F4bitle%2FLinkEstimatorP.nc;h=616d44184afd3dab59676c4bbeda1fb9e53092f3;hb=e20f836a07475e6653e609dc9c86c096fbb2f263;hp=86f5c64dc178cd774aa3462ae53aa8bc0077eb83;hpb=582af5c7806051948123e61bba4fc0cfc2c17462;p=tinyos-2.x.git diff --git a/tos/lib/net/4bitle/LinkEstimatorP.nc b/tos/lib/net/4bitle/LinkEstimatorP.nc index 86f5c64d..616d4418 100644 --- a/tos/lib/net/4bitle/LinkEstimatorP.nc +++ b/tos/lib/net/4bitle/LinkEstimatorP.nc @@ -690,9 +690,7 @@ implementation { // application payload pointer is just past the link estimation header command void* Packet.getPayload(message_t* msg, uint8_t len) { - linkest_header_t *hdr = getHeader(msg); - uint8_t footerLen = (hdr->flags & NUM_ENTRIES_FLAG) * sizeof(linkest_header_t); - void* payload = call SubPacket.getPayload(msg, len + footerLen); + void* payload = call SubPacket.getPayload(msg, len + sizeof(linkest_header_t)); if (payload != NULL) { payload += sizeof(linkest_header_t); }