[Ns-bugs] [Bug 1060] Setting NqStaWifiMac Active Probing true, crashes simulation
code at nsnam.ece.gatech.edu
Mon Mar 28 08:58:00 PDT 2011
--- Comment #5 from Nicola Baldo <nbaldo at cttc.es> 2011-03-28 11:57:58 EDT ---
Created attachment 1053
delay first call to TryToEnsureAssociated
Hi Tomé & Dean,
thanks for the report and for the investigation, and sorry for the late reply.
I think that m_linkDown is intended to be always set, in fact it is set by
WifiNetDevice::CompleteConfig for all types of devices (STA, AP, etc).
The problem is that WifiNetDevice::CompleteConfig is called only at the end of
the whole configuration, while setting ActiveProbing upon the creation of
ns3::StaWifiMac causes StaWifiMac::TryToEnsureAssociated to be called before
the attached patch fixes the problem, but I am not sure it is a nice fix,
because if there is more than one STA in the scenario then it will cause all
STAs to try to send a probe request at the same time, thus generating the
well-known problems discussed within bug 912 and bug 388.
One solution would be just to document that the ActiveProbing attribute needs
to be set to true at a random time, for the sake of the simulation.
Another solution would be to find an approach to solve 912 and 338, and apply
the same philosophy to this bug.
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Ns-bugs