wifi: Fix incorrect TX duration calculated in MinstrelHt
This commit is contained in:
@@ -432,7 +432,7 @@ MinstrelHtWifiManager::CalculateMpduTxDuration(Ptr<WifiPhy> phy,
|
||||
txvector.SetNess(0);
|
||||
txvector.SetStbc(false);
|
||||
txvector.SetMode(mode);
|
||||
txvector.SetPreambleType(WIFI_PREAMBLE_HT_MF);
|
||||
txvector.SetPreambleType(GetPreambleForTransmission(mode.GetModulationClass()));
|
||||
return WifiPhy::CalculatePhyPreambleAndHeaderDuration(txvector) +
|
||||
WifiPhy::GetPayloadDuration(m_frameLength, txvector, phy->GetPhyBand(), mpduType);
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ GetGuardIntervalForMode(WifiMode mode, bool htShortGuardInterval, Time heGuardIn
|
||||
}
|
||||
|
||||
WifiPreamble
|
||||
GetPreambleForTransmission(WifiModulationClass modulation, bool useShortPreamble)
|
||||
GetPreambleForTransmission(WifiModulationClass modulation, bool useShortPreamble /* = false */)
|
||||
{
|
||||
if (modulation == WIFI_MOD_CLASS_EHT)
|
||||
{
|
||||
|
||||
@@ -609,7 +609,8 @@ Time GetGuardIntervalForMode(WifiMode mode, bool htShortGuardInterval, Time heGu
|
||||
*
|
||||
* @return the preamble to be used for the transmission
|
||||
*/
|
||||
WifiPreamble GetPreambleForTransmission(WifiModulationClass modulation, bool useShortPreamble);
|
||||
WifiPreamble GetPreambleForTransmission(WifiModulationClass modulation,
|
||||
bool useShortPreamble = false);
|
||||
|
||||
/**
|
||||
* Return the modulation class corresponding to the given preamble type.
|
||||
|
||||
Reference in New Issue
Block a user