src/devices/wifi/wifi-mac.cc
changeset 4264 9d2e96c4e6e4
parent 4263 fec2f830d015
child 4272 b40ce56e0247
--- a/src/devices/wifi/wifi-mac.cc	Sat Feb 28 16:25:24 2009 -0800
+++ b/src/devices/wifi/wifi-mac.cc	Tue Mar 10 23:47:55 2009 -0700
@@ -68,7 +68,6 @@
   return ctsTimeout;
 }
 
-
 TypeId 
 WifiMac::GetTypeId (void)
 {
@@ -133,9 +132,12 @@
                      "A packet has been dropped in the MAC layer after it has been passed up from the physical "
                      "layer.",
                      MakeTraceSourceAccessor (&WifiMac::m_macRxDropTrace))
+#if 0
+    // Not currently implemented in this device
     .AddTraceSource ("Sniffer", 
                      "Trace source simulating a non-promiscuous packet sniffer attached to the device",
                      MakeTraceSourceAccessor (&WifiMac::m_snifferTrace))
+#endif
     ;
 
   return tid;
@@ -164,11 +166,28 @@
   return m_maxMsduSize;
 }
 
-void
-WifiMac::SnifferTrace (Ptr<const Packet> packet)
+void 
+WifiMac::NotifyTx (Ptr<const Packet> packet)
 {
-  m_snifferTrace (packet);
+  m_macTxTrace (packet);
+}
+
+void 
+WifiMac::NotifyTxDrop (Ptr<const Packet> packet) 
+{
+  m_macTxDropTrace (packet);
 }
 
+void 
+WifiMac::NotifyRx (Ptr<const Packet> packet) 
+{
+  m_macRxTrace (packet);
+}
+
+void 
+WifiMac::NotifyRxDrop (Ptr<const Packet> packet) 
+{
+  m_macRxDropTrace (packet);
+}
 
 } // namespace ns3