]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Removed some unused code
authorjanhauer <janhauer>
Tue, 7 Apr 2009 15:40:12 +0000 (15:40 +0000)
committerjanhauer <janhauer>
Tue, 7 Apr 2009 15:40:12 +0000 (15:40 +0000)
tos/lib/mac/tkn154/PibP.nc
tos/platforms/telosb/mac/tkn154/platform_message.h

index 645b0e57ee7e1a390a8888b4cc54c8d00ad8b8bc..d5695cf2d06f040399970f6c02a92c0500eb89b7 100644 (file)
@@ -567,7 +567,7 @@ implementation
 
   command uint8_t Packet.maxPayloadLength()
   {
-#if TOSH_DATA_LENGTH < 118
+#if TOSH_DATA_LENGTH < IEEE154_aMaxMACPayloadSize
 #warning Payload portion in message_t is smaller than required (TOSH_DATA_LENGTH < IEEE154_aMaxMACPayloadSize). This means that larger packets cannot be sent/received.
 #endif
     return TOSH_DATA_LENGTH;
index 8dabee10e75fec78721650a86439a217fc89993a..f13513df76fb702c0787a3cd61a361a45eed1922 100644 (file)
@@ -6,27 +6,11 @@
 
 #include <Serial.h>
 
-#ifndef IEEE154_OLD_INTERFACES
+/* The following include pulls in the ieee154_header_t/ieee154_metadata_t definitions */
 #include <TKN154_MAC.h>
-#else
-typedef struct {
-  uint8_t control;  // stores length (lower 7 bits), top bit -> promiscuous mode
-  uint8_t mhr[MHR_MAX_LEN];  // maximum header size without security
-} ieee154_header_t;
-
-typedef struct {
-  uint8_t rssi;
-  uint8_t linkQuality;
-  uint32_t timestamp;
-} ieee154_metadata_t;
-#endif
 
-//#ifdef TOSH_DATA_LENGTH
-//#undef TOSH_DATA_LENGTH
-//#endif
-// TOSH_DATA_LENGTH may be smaller than 118, but then we'll
-// not be able to receive/send all IEEE 802.15.4 packets 
-#define TOSH_DATA_LENGTH 118
+/* TOSH_DATA_LENGTH should be the maximum length of the MAC payload */
+#define TOSH_DATA_LENGTH IEEE154_aMaxMACPayloadSize
 
 typedef union message_header {
   ieee154_header_t ieee154;