From db8c0bdfcbe8a8064b961037aa6472c94cde15a2 Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Wed, 14 Aug 2013 23:57:33 +0200 Subject: [PATCH] Fix transceiver.c: receive_packet Upper layer notification used packet type instead of transceiver type to check monitoring threads. --- sys/transceiver/transceiver.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/transceiver/transceiver.c b/sys/transceiver/transceiver.c index 727ff80b3c..39108b2298 100644 --- a/sys/transceiver/transceiver.c +++ b/sys/transceiver/transceiver.c @@ -323,24 +323,31 @@ static void receive_packet(uint16_t type, uint8_t pos) if (type == RCV_PKT_CC1100) { #ifdef MODULE_CC110X_NG receive_cc110x_packet(trans_p); + type = TRANSCEIVER_CC1100; #elif MODULE_CC110X receive_cc1100_packet(trans_p); + type = TRANSCEIVER_CC1100; #else trans_p = NULL; + type = TRANSCEIVER_NONE; #endif } else if (type == RCV_PKT_MC1322X) { #ifdef MODULE_MC1322X receive_mc1322x_packet(trans_p); + type = TRANSCEIVER_MC1322X; #else trans_p = NULL; + type = TRANSCEIVER_NONE; #endif } else if (type == RCV_PKT_CC2420) { #ifdef MODULE_CC2420 receive_cc2420_packet(trans_p); + type = TRANSCEIVER_CC2420; #else trans_p = NULL; + type = TRANSCEIVER_NONE; #endif } else {