|
648 |
m_beaconEvent.Cancel (); |
648 |
m_beaconEvent.Cancel (); |
649 |
if (m_enableBeaconGeneration) |
649 |
if (m_enableBeaconGeneration) |
650 |
{ |
650 |
{ |
651 |
m_beaconEvent = Simulator::ScheduleNow (&ApWifiMac::SendOneBeacon, this); |
651 |
m_beaconOffset = CreateObject<UniformRandomVariable> (); |
|
|
652 |
Time offset = MicroSeconds (m_beaconOffset->GetValue (1, m_beaconInterval.GetMicroSeconds ())); |
653 |
m_beaconEvent = Simulator::Schedule (offset, &ApWifiMac::SendOneBeacon, this); |
652 |
} |
654 |
} |
653 |
RegularWifiMac::DoInitialize (); |
655 |
RegularWifiMac::DoInitialize (); |
654 |
} |
656 |
} |