From a86a0fbe0e4936147e15f571643f612b6fc3c173 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Fri, 18 Feb 2011 12:46:10 -0500 Subject: [PATCH] set lqi packet attribute --- cpu/mc1322x/contiki-maca.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpu/mc1322x/contiki-maca.c b/cpu/mc1322x/contiki-maca.c index 6fc672204..4f10e5797 100644 --- a/cpu/mc1322x/contiki-maca.c +++ b/cpu/mc1322x/contiki-maca.c @@ -155,6 +155,7 @@ int contiki_maca_read(void *buf, unsigned short bufsize) { PRINTF(": p->length 0x%0x bufsize 0x%0x \n\r", p->length, bufsize); if((p->length) < bufsize) bufsize = (p->length); memcpy(buf, (uint8_t *)(p->data + p->offset), bufsize); + packetbuf_set_attr(PACKETBUF_ATTR_LINK_QUALITY,p->lqi); #if CONTIKI_MACA_DEBUG for( i = p->offset ; i < (bufsize + p->offset) ; i++) { PRINTF(" %02x",p->data[i]);