src/devices/wifi/adhoc-wifi-mac.cc
changeset 4263 fec2f830d015
parent 4209 42c89b271a69
child 4264 9d2e96c4e6e4
--- a/src/devices/wifi/adhoc-wifi-mac.cc	Wed Feb 25 12:27:00 2009 -0500
+++ b/src/devices/wifi/adhoc-wifi-mac.cc	Sat Feb 28 16:25:24 2009 -0800
@@ -24,6 +24,7 @@
 #include "mac-rx-middle.h"
 #include "wifi-phy.h"
 #include "dcf-manager.h"
+#include "wifi-mac-trailer.h"
 #include "ns3/pointer.h"
 #include "ns3/packet.h"
 #include "ns3/log.h"
@@ -234,6 +235,7 @@
       destination->RecordDisassociated ();
     }
 
+  m_macTxTrace (packet);
   m_dca->Queue (packet, hdr);
 }
 bool 
@@ -246,6 +248,7 @@
 AdhocWifiMac::ForwardUp (Ptr<Packet> packet, WifiMacHeader const *hdr)
 {
   NS_LOG_DEBUG ("received size="<<packet->GetSize ()<<", from="<<hdr->GetAddr2 ());
+  m_macRxTrace (packet);
   m_upCallback (packet, hdr->GetAddr2 (), hdr->GetAddr1 ());
 }
 Ptr<DcaTxop>