X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Frf2xx%2Frf212%2FRF212RadioP.nc;h=57823fe33fbae5ce939cd4eb0584426095b27dab;hb=a8214d93267fc47a4edb5417f91f152bc505ea67;hp=699aeb56368d1f3626accc3de66e26e12a7ea1bd;hpb=1203cdd1382f55541be927d74b57d44e2b47724a;p=tinyos-2.x.git diff --git a/tos/chips/rf2xx/rf212/RF212RadioP.nc b/tos/chips/rf2xx/rf212/RF212RadioP.nc index 699aeb56..57823fe3 100644 --- a/tos/chips/rf2xx/rf212/RF212RadioP.nc +++ b/tos/chips/rf2xx/rf212/RF212RadioP.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); }