]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/cc2420/csma/CC2420CsmaP.nc
cleanup some offsets in the cc2420 stack
[tinyos-2.x.git] / tos / chips / cc2420 / csma / CC2420CsmaP.nc
index 82f4412ed12b6cf044a659ffa5cf12a5898e5b40..42e087c86ed40bccdcddaa2e1932a6f7cabeaae3 100644 (file)
@@ -160,7 +160,7 @@ implementation {
 
   command void* Send.getPayload(message_t* m, uint8_t len) {
     if (len <= call Send.maxPayloadLength()) {
-      return (void* COUNT_NOK(len ))(CC2420_PAYLOAD(m));
+      return (void* COUNT_NOK(len ))(m->data);
     }
     else {
       return NULL;
@@ -168,7 +168,7 @@ implementation {
   }
 
   command uint8_t Send.maxPayloadLength() {
-    return TOSH_DATA_LENGTH + AM_OVERHEAD;
+    return TOSH_DATA_LENGTH;
   }
 
   /**************** RadioBackoff Commands ****************/