]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
- bugfix: empty data frame sent in response to a datarequest (somtimes) had wrong...
authorjanhauer <janhauer>
Thu, 4 Feb 2010 16:31:15 +0000 (16:31 +0000)
committerjanhauer <janhauer>
Thu, 4 Feb 2010 16:31:15 +0000 (16:31 +0000)
- updated signature of dummy component NoPromiscuousModeP

tos/lib/mac/tkn154/IndirectTxP.nc
tos/lib/mac/tkn154/dummies/NoPromiscuousModeP.nc

index 9a712f49776011e159a445b16f6c2f6e75019ddd..c404bcec7932ae8182749e0e9137eb72843f84b9 100644 (file)
@@ -267,7 +267,7 @@ implementation
         NULL //security
         );
     MHR(&m_emptyDataFrame)[MHR_INDEX_FC1] |= FC1_FRAMETYPE_DATA;
-    m_emptyDataFrame.headerLen = 9;
+    m_emptyDataFrame.headerLen = call IEEE154Frame.getHeaderLength(emptyDataMsg);
     m_emptyDataFrame.client = 1; // lock
     if (call CoordCapTx.transmit(&m_emptyDataFrame) != IEEE154_SUCCESS)
       m_emptyDataFrame.client = 0; // unlock
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);}
 }