From f5307fc01e710d94a5e595f891bd7453f8bced1a Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Sun, 28 Jul 2013 22:38:18 +0200 Subject: [PATCH] Bugfix: must set the SICSLOWPAM_MAX_MAC_TRANSMISSIONS attribute after clearing the buffer, otherwise it will not be used for outoing packets. --- core/net/sicslowpan.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/net/sicslowpan.c b/core/net/sicslowpan.c index ca55ee9ec..ad9cc96c8 100644 --- a/core/net/sicslowpan.c +++ b/core/net/sicslowpan.c @@ -1445,6 +1445,11 @@ output(uip_lladdr_t *localdest) framer_hdrlen = 21; } packetbuf_clear(); + + /* We must set the max transmissions attribute again after clearing + the buffer. */ + packetbuf_set_attr(PACKETBUF_ATTR_MAX_MAC_TRANSMISSIONS, + SICSLOWPAN_MAX_MAC_TRANSMISSIONS); #else /* USE_FRAMER_HDRLEN */ framer_hdrlen = 21; #endif /* USE_FRAMER_HDRLEN */