src/devices/wifi/nqap-wifi-mac.cc
changeset 3389 d02d0233f14b
parent 3197 362f1a144828
child 3517 5ba130a7f519
equal deleted inserted replaced
3388:0258bd0793ab 3389:d02d0233f14b
    43   static TypeId tid = TypeId ("ns3::NqapWifiMac")
    43   static TypeId tid = TypeId ("ns3::NqapWifiMac")
    44     .SetParent<WifiMac> ()
    44     .SetParent<WifiMac> ()
    45     .AddConstructor<NqapWifiMac> ()
    45     .AddConstructor<NqapWifiMac> ()
    46     .AddAttribute ("BeaconInterval", "Delay between two beacons",
    46     .AddAttribute ("BeaconInterval", "Delay between two beacons",
    47                    TimeValue (Seconds (0.1)),
    47                    TimeValue (Seconds (0.1)),
    48                    MakeTimeAccessor (&NqapWifiMac::m_beaconInterval),
    48                    MakeTimeAccessor (&NqapWifiMac::GetBeaconInterval,
       
    49                                      &NqapWifiMac::SetBeaconInterval),
    49                    MakeTimeChecker ())
    50                    MakeTimeChecker ())
    50     .AddAttribute ("BeaconGeneration", "Whether or not beacons are generated.",
    51     .AddAttribute ("BeaconGeneration", "Whether or not beacons are generated.",
    51                    BooleanValue (false),
    52                    BooleanValue (false),
    52                    MakeBooleanAccessor (&NqapWifiMac::SetBeaconGeneration,
    53                    MakeBooleanAccessor (&NqapWifiMac::SetBeaconGeneration,
    53                                         &NqapWifiMac::GetBeaconGeneration),
    54                                         &NqapWifiMac::GetBeaconGeneration),
   116 
   117 
   117 bool
   118 bool
   118 NqapWifiMac::GetBeaconGeneration (void) const
   119 NqapWifiMac::GetBeaconGeneration (void) const
   119 {
   120 {
   120   return m_beaconEvent.IsRunning ();
   121   return m_beaconEvent.IsRunning ();
       
   122 }
       
   123 Time 
       
   124 NqapWifiMac::GetBeaconInterval (void) const
       
   125 {
       
   126   return m_beaconInterval;
   121 }
   127 }
   122 
   128 
   123 void 
   129 void 
   124 NqapWifiMac::SetSlot (Time slotTime)
   130 NqapWifiMac::SetSlot (Time slotTime)
   125 {
   131 {