From 9a7a2742b32af62be784f5f88373b2f218c8c538 Mon Sep 17 00:00:00 2001 From: maralvira Date: Wed, 28 Jul 2010 18:48:51 +0000 Subject: [PATCH] remove bad call to maca_on() maca_on() resets the maca and phy, takes a long time, and clobbers any packet that is currently being transmitted or received. It doesn't belong in prepare and was the source of a lot of latency and bad packet transmissions. Make sure the maca is on somewhere else. --- cpu/mc1322x/contiki-maca.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cpu/mc1322x/contiki-maca.c b/cpu/mc1322x/contiki-maca.c index daaaef374..b702bcd22 100644 --- a/cpu/mc1322x/contiki-maca.c +++ b/cpu/mc1322x/contiki-maca.c @@ -30,7 +30,7 @@ * * This file is part of the Contiki OS. * - * $Id: contiki-maca.c,v 1.2 2010/06/14 19:19:17 adamdunkels Exp $ + * $Id: contiki-maca.c,v 1.3 2010/07/28 18:48:51 maralvira Exp $ */ #include @@ -176,7 +176,6 @@ int contiki_maca_prepare(const void *payload, unsigned short payload_len) { if ((prepped_p == 0) && (p = get_free_packet())) { PRINTF("contiki maca prepare"); - maca_on(); #if CONTIKI_MACA_RAW_MODE p->offset = 1; p->length = payload_len + 1;