Finish the transmission at the end of a correct packet

This patch restores the original behaviour of Cooja when
the transmitted packet is correct (which is true in a vast majority
of cases).

In case of a wrong outgoing packet (wrong length, wrong preamble)
the transmission will end when the radio changes its state (which
should always happen after transmitting a packet).

Benchmarks with RPL (33 runs, 50 nodes, 3 hours of simulated time each)
yield the same results (PDR, delay, number of transmitted packets)
as with the unmodified Cooja.
This commit is contained in:
Timofei Istomin 2015-06-05 15:13:45 +02:00
parent 034a97eed2
commit eb4bdde9ca

View file

@ -146,7 +146,7 @@ public class Msp802154Radio extends Radio implements CustomDataRadio {
setChanged();
notifyObservers();
}
isSynchronized = false;
finishTransmission();
}
}
}); /* addRFListener */