--- 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)