From 0a4a0ffb328abfcff4e33da44b7927fa39a87c2b Mon Sep 17 00:00:00 2001 From: dak664 Date: Tue, 14 Dec 2010 22:18:20 +0000 Subject: [PATCH] Add SICSLOWPAN_CONF_ACK_ALL for hardware autoack testing --- core/net/sicslowpan.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/net/sicslowpan.c b/core/net/sicslowpan.c index aa8151b9f..91ff6ebef 100644 --- a/core/net/sicslowpan.c +++ b/core/net/sicslowpan.c @@ -32,7 +32,7 @@ * * This file is part of the Contiki operating system. * - * $Id: sicslowpan.c,v 1.50 2010/12/13 23:27:40 dak664 Exp $ + * $Id: sicslowpan.c,v 1.51 2010/12/14 22:18:20 dak664 Exp $ */ /** * \file @@ -1255,6 +1255,11 @@ send_packet(rimeaddr_t *dest) */ packetbuf_set_addr(PACKETBUF_ADDR_RECEIVER, dest); + /* Force acknowledge from sender (test hardware autoacks) */ +#if SICSLOWPAN_CONF_ACK_ALL + packetbuf_set_attr(PACKETBUF_ATTR_RELIABLE, 1); +#endif + /* Provide a callback function to receive the result of a packet transmission. */ NETSTACK_MAC.send(&packet_sent, NULL);