Bugzilla – Bug 177
Wifi default beacon interval not very realistic
Last modified: 2008-07-01 13:32:29 UTC
In src/devices/wifi/nqap-wifi-mac.cc: NqapWifiMac::GetTypeId (void) { static TypeId tid = TypeId ("ns3::NqapWifiMac") .SetParent<WifiMac> () .AddConstructor<NqapWifiMac> () .AddAttribute ("BeaconInterval", "Delay between two beacons", TimeValue (Seconds (1.0)), MakeTimeAccessor (&NqapWifiMac::m_beaconInterval), MakeTimeChecker ()) Looking at the 802.11 standard I couldn't find any default value for beacon interval, but experience tells me that 1 second is unrealistic and 100 ms is a more suitable default value.
See http://telecom.inescporto.pt/~gjc/Screenshot-(Untitled)%20-%20Wireshark.png Shows real live capture, approximately 100 ms interval. Patch is trivial: diff -r 539a710e5cf9 src/devices/wifi/nqap-wifi-mac.cc --- a/src/devices/wifi/nqap-wifi-mac.cc Tue Jun 03 07:09:40 2008 -0700 +++ b/src/devices/wifi/nqap-wifi-mac.cc Tue Jun 03 18:00:01 2008 +0100 @@ -44,7 +44,7 @@ NqapWifiMac::GetTypeId (void) .SetParent<WifiMac> () .AddConstructor<NqapWifiMac> () .AddAttribute ("BeaconInterval", "Delay between two beacons", - TimeValue (Seconds (1.0)), + TimeValue (Seconds (0.1)), MakeTimeAccessor (&NqapWifiMac::m_beaconInterval), MakeTimeChecker ()) .AddAttribute ("BeaconGeneration", "Whether or not beacons are generated.",
please, commit.