src/devices/wifi/nqap-wifi-mac.cc
changeset 4209 42c89b271a69
parent 4079 210d64d11998
child 4263 fec2f830d015
--- a/src/devices/wifi/nqap-wifi-mac.cc	Mon Feb 23 16:07:46 2009 +0000
+++ b/src/devices/wifi/nqap-wifi-mac.cc	Tue Feb 24 08:20:51 2009 +0100
@@ -30,6 +30,7 @@
 #include "dcf-manager.h"
 #include "mac-rx-middle.h"
 #include "mac-low.h"
+#include "ns3/pointer.h"
 
 NS_LOG_COMPONENT_DEFINE ("NqapWifiMac");
 
@@ -56,6 +57,10 @@
                    MakeBooleanAccessor (&NqapWifiMac::SetBeaconGeneration,
                                         &NqapWifiMac::GetBeaconGeneration),
                    MakeBooleanChecker ())
+    .AddAttribute ("DcaTxop", "The DcaTxop object",
+                   PointerValue (),
+                   MakePointerAccessor (&NqapWifiMac::DoGetDcaTxop),
+                   MakePointerChecker<DcaTxop> ()) 
     ;
   return tid;
 }
@@ -554,5 +559,10 @@
       NS_ASSERT (false);
     }  
 }
+Ptr<DcaTxop>
+NqapWifiMac::DoGetDcaTxop(void) const
+{
+  return m_dca;
+}
 
 } // namespace ns3