]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
remove group field, breaks MAC timings.
authorandreaskoepke <andreaskoepke>
Tue, 10 Jul 2007 13:09:47 +0000 (13:09 +0000)
committerandreaskoepke <andreaskoepke>
Tue, 10 Jul 2007 13:09:47 +0000 (13:09 +0000)
tos/chips/tda5250/Tda5250ActiveMessageP.nc
tos/chips/tda5250/tda5250_message.h

index 05c8943fd3fe954d64fb91c30c8cb1ec66fd4006..f46eb5887264dbb292a1b2d146e01f2151ebaf21 100644 (file)
@@ -154,13 +154,11 @@ implementation {
   }
 
   command void AMPacket.setGroup(message_t* msg, am_group_t group) {
-    tda5250_header_t* header = getHeader(msg);
-    header->group = group;
+     return;
   }
 
   command am_group_t AMPacket.group(message_t* msg) {
-    tda5250_header_t* header = getHeader(msg);
-    return header->group;
+    return TOS_AM_GROUP;
   }
 
   command am_group_t AMPacket.localGroup() {
index 40a4b8ce74680b1d019bed4e49216cde26396f83..1f377841096bcfc190709115a0159c1bb8ecf8e3 100644 (file)
@@ -9,7 +9,6 @@ typedef nx_struct tda5250_header_t {
   nx_am_addr_t src;
   nx_am_addr_t dest;
   nx_am_id_t   type;
-  nx_am_group_t group;
   nx_uint8_t   token;
 } tda5250_header_t;
 
@@ -24,6 +23,9 @@ typedef nx_struct tda5250_metadata_t {
   nx_uint32_t time;
   nx_uint8_t sendSecurityMode;
   nx_uint8_t receiveSecurityMode;
+  /* some meta information that allows to compute a density */
+  nx_uint8_t maxRepetitions;
+  nx_uint8_t repetitions;
 } tda5250_metadata_t;
 
 #endif