|
50 |
.SetParent<WifiMac> () |
50 |
.SetParent<WifiMac> () |
51 |
.AddConstructor<NqapWifiMac> () |
51 |
.AddConstructor<NqapWifiMac> () |
52 |
.AddAttribute ("BeaconInterval", "Delay between two beacons", |
52 |
.AddAttribute ("BeaconInterval", "Delay between two beacons", |
53 |
TimeValue (Seconds (0.1)), |
53 |
TimeValue (MicroSeconds (102400)), |
54 |
MakeTimeAccessor (&NqapWifiMac::GetBeaconInterval, |
54 |
MakeTimeAccessor (&NqapWifiMac::GetBeaconInterval, |
55 |
&NqapWifiMac::SetBeaconInterval), |
55 |
&NqapWifiMac::SetBeaconInterval), |
56 |
MakeTimeChecker ()) |
56 |
MakeTimeChecker ()) |
|
280 |
NqapWifiMac::SetBeaconInterval (Time interval) |
280 |
NqapWifiMac::SetBeaconInterval (Time interval) |
281 |
{ |
281 |
{ |
282 |
NS_LOG_FUNCTION (this << interval); |
282 |
NS_LOG_FUNCTION (this << interval); |
|
|
283 |
if ((interval.GetMicroSeconds () % 1024) != 0) |
284 |
{ |
285 |
NS_LOG_WARN ("beacon interval should be multiple of 1024us, see IEEE Std. 802.11-2007, section 11.1.1.1"); |
286 |
} |
283 |
m_beaconInterval = interval; |
287 |
m_beaconInterval = interval; |
284 |
} |
288 |
} |
285 |
void |
289 |
void |