src/devices/wifi/nqap-wifi-mac.cc
changeset 3389 d02d0233f14b
parent 3197 362f1a144828
child 3517 5ba130a7f519
--- a/src/devices/wifi/nqap-wifi-mac.cc	Tue Jul 08 10:02:28 2008 -0700
+++ b/src/devices/wifi/nqap-wifi-mac.cc	Tue Jul 08 10:02:46 2008 -0700
@@ -45,7 +45,8 @@
     .AddConstructor<NqapWifiMac> ()
     .AddAttribute ("BeaconInterval", "Delay between two beacons",
                    TimeValue (Seconds (0.1)),
-                   MakeTimeAccessor (&NqapWifiMac::m_beaconInterval),
+                   MakeTimeAccessor (&NqapWifiMac::GetBeaconInterval,
+                                     &NqapWifiMac::SetBeaconInterval),
                    MakeTimeChecker ())
     .AddAttribute ("BeaconGeneration", "Whether or not beacons are generated.",
                    BooleanValue (false),
@@ -119,6 +120,11 @@
 {
   return m_beaconEvent.IsRunning ();
 }
+Time 
+NqapWifiMac::GetBeaconInterval (void) const
+{
+  return m_beaconInterval;
+}
 
 void 
 NqapWifiMac::SetSlot (Time slotTime)