eifs calculation is wrong: match the spec.

This commit is contained in:
Mathieu Lacage
2007-10-18 11:21:40 +02:00
parent 551de62f42
commit 976c3bbe98

View File

@@ -157,7 +157,7 @@ WifiNetDevice::CreateDca (uint32_t minCw, uint32_t maxCw) const
m_parameters->GetSlotTime ();
// see 802.11 p85 section 9.2.10
Time eifs = difs + m_parameters->GetSifs () +
m_phy->CalculateTxDuration (2+2+6+4, m_phy->GetMode (0), WIFI_PREAMBLE_LONG);
m_phy->CalculateTxDuration (8 * (2+2+6+4), m_phy->GetMode (0), WIFI_PREAMBLE_LONG);
dca->SetDifs (difs);
dca->SetEifs (eifs);
dca->SetMaxQueueSize (400);