]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/mac/tkn154/dummies/NoPromiscuousModeP.nc
- bugfix: empty data frame sent in response to a datarequest (somtimes) had wrong...
[tinyos-2.x.git] / tos / lib / mac / tkn154 / dummies / NoPromiscuousModeP.nc
index ae3a2124fe29def3f696b56bfcb1508147aa1d49..57bbee8d5f1197f67ff12a57fa9753527fd6a755 100644 (file)
@@ -46,7 +46,7 @@ module NoPromiscuousModeP
     interface FrameRx;
     interface GetNow<token_requested_t> as IsRadioTokenRequested;
   } uses {
-    interface Resource as Token;
+    interface TransferableResource as RadioToken;
     interface RadioRx as PromiscuousRx;
     interface RadioOff;
     interface Set<bool> as RadioPromiscuousMode;
@@ -63,11 +63,11 @@ implementation
 
   command error_t PromiscuousMode.start() { return FAIL; }
 
-  event void Token.granted() { call Token.release(); }
+  event void RadioToken.granted() { ASSERT(0);}
 
-  async event void PromiscuousRx.prepareDone() { }
+  event message_t* PromiscuousRx.received(message_t *frame, const ieee154_timestamp_t *timestamp) { return frame; }
 
-  event message_t* PromiscuousRx.received(message_t *frame, ieee154_timestamp_t *timestamp) { return frame; }
+  async event void PromiscuousRx.enableRxDone(){}
 
   command error_t PromiscuousMode.stop() { return FAIL; }
 
@@ -76,4 +76,5 @@ implementation
   default event void PromiscuousMode.startDone(error_t error){}
   default event void PromiscuousMode.stopDone(error_t error){}
   async command token_requested_t IsRadioTokenRequested.getNow(){ return FALSE;}
+  async event void RadioToken.transferredFrom(uint8_t clientFrom){ASSERT(0);}
 }