From a8f9119acefb49f1990fbdb2ae387448ec9c4135 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Tue, 22 Feb 2011 10:57:29 -0800 Subject: [PATCH] pass up a RADIO_NOACK to the MAC layer. --- core/dev/radio.h | 1 + core/net/mac/nullrdc.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/core/dev/radio.h b/core/dev/radio.h index b530f9c09..f4e6bdd09 100644 --- a/core/dev/radio.h +++ b/core/dev/radio.h @@ -96,6 +96,7 @@ enum { RADIO_TX_OK, RADIO_TX_ERR, RADIO_TX_COLLISION, + RADIO_TX_NOACK, }; #endif /* __RADIO_H__ */ diff --git a/core/net/mac/nullrdc.c b/core/net/mac/nullrdc.c index 1a7483e4c..1ddd4cbc8 100644 --- a/core/net/mac/nullrdc.c +++ b/core/net/mac/nullrdc.c @@ -171,6 +171,9 @@ send_packet(mac_callback_t sent, void *ptr) case RADIO_TX_COLLISION: ret = MAC_TX_COLLISION; break; + case RADIO_TX_NOACK: + ret = MAC_TX_NOACK; + break; default: ret = MAC_TX_ERR; break;