X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Frf2xx%2Frf230%2FRF230RadioP.nc;h=f4b0eab716172d4bfd62c7768d5bf90b3eaec53d;hb=3c311f1b2729f43a356b02542a7001db623395e1;hp=57ad57a9b4c48ace9f68173b733afd1783c3f997;hpb=17b072b6cdd381b02de1d26645dfb9927f0d8132;p=tinyos-2.x.git diff --git a/tos/chips/rf2xx/rf230/RF230RadioP.nc b/tos/chips/rf2xx/rf230/RF230RadioP.nc index 57ad57a9..f4b0eab7 100644 --- a/tos/chips/rf2xx/rf230/RF230RadioP.nc +++ b/tos/chips/rf2xx/rf230/RF230RadioP.nc @@ -189,6 +189,14 @@ implementation call Ieee154PacketLayer.setDestPan(msg, grp); } + command error_t ActiveMessageConfig.checkFrame(message_t* msg) + { + if( ! call Ieee154PacketLayer.isDataFrame(msg) ) + call Ieee154PacketLayer.createDataFrame(msg); + + return SUCCESS; + } + /*----------------- CsmaConfig -----------------*/ async command bool CsmaConfig.requiresSoftwareCCA(message_t* msg) @@ -312,7 +320,12 @@ implementation #ifdef LOW_POWER_LISTENING - async command bool LowPowerListeningConfig.getAckRequired(message_t* msg) + command bool LowPowerListeningConfig.needsAutoAckRequest(message_t* msg) + { + return call Ieee154PacketLayer.getDestAddr(msg) != TOS_BCAST_ADDR; + } + + command bool LowPowerListeningConfig.ackRequested(message_t* msg) { return call Ieee154PacketLayer.getAckRequired(msg); }