[Ns-bugs] [Bug 706] Backoff counting when starting NS.
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Mon Nov 16 07:18:27 PST 2009
http://www.nsnam.org/bugzilla/show_bug.cgi?id=706
Mathieu Lacage <mathieu.lacage at sophia.inria.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mathieu.lacage at sophia.inria
| |.fr
--- Comment #1 from Mathieu Lacage <mathieu.lacage at sophia.inria.fr> 2009-11-16 10:18:27 EDT ---
The risk is that m_cw will not be initialized correctly when the constructor is
invoked. I suspect that the best way to do this would be to use the
Object::DoStart method I introduced a couple of days ago and move the code you
introduced here instead:
void
DcaTxop::DoStart (void)
{
// XXX... start backoff
// chainup
Dcf::DoStart ();
}
And, then, you need to make sure that the MAC layer which creates the DcaTxop
class calls its Start method:
void
NqapWifiMac::DoStart (void)
{
m_beaconDca->Start ();
m_dca->Start ();
// chainup
WifiMac::DoStart ();
}
and the same modification in all other WifiMac subclasses.
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Ns-bugs
mailing list