From 21828ad7823aa6424b9e26281e33d5eb8a570cc2 Mon Sep 17 00:00:00 2001 From: nifi Date: Wed, 16 Jun 2010 10:08:30 +0000 Subject: [PATCH] Changed the retransmission time to be based on the configured MAC channel check rate when the RDC has no channel check interval. --- core/net/mac/csma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/net/mac/csma.c b/core/net/mac/csma.c index a8a3f5726..2c9c93269 100644 --- a/core/net/mac/csma.c +++ b/core/net/mac/csma.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: csma.c,v 1.18 2010/06/14 19:19:16 adamdunkels Exp $ + * $Id: csma.c,v 1.19 2010/06/16 10:08:30 nifi Exp $ */ /** @@ -157,9 +157,9 @@ packet_sent(void *ptr, int status, int num_transmissions) /* If the radio duty cycle has no channel check interval (i.e., it does not turn the radio off), we make the retransmission time - proportional to one second. */ + proportional to the configured MAC channel check rate. */ if(time == 0) { - time = CLOCK_SECOND; + time = CLOCK_SECOND / MAC_CHANNEL_CHECK_RATE; } /* The retransmission time uses a linear backoff so that the