wifi: Remove hardcoded nss in WifiPhy::GetPayloadDuration

This commit is contained in:
Sébastien Deronne
2016-03-15 23:47:58 +01:00
parent 9c2793c042
commit fc973f2f4f

View File

@@ -624,7 +624,7 @@ WifiPhy::GetPayloadDuration (uint32_t size, WifiTxVector txVector, WifiPreamble
}
//IEEE Std 802.11n, section 20.3.11, equation (20-32)
double numDataBitsPerSymbol = payloadMode.GetDataRate (txVector.GetChannelWidth (), txVector.IsShortGuardInterval (), 1) * txVector.GetNss () * symbolDuration.GetNanoSeconds () / 1e9;
double numDataBitsPerSymbol = payloadMode.GetDataRate (txVector.GetChannelWidth (), txVector.IsShortGuardInterval (), txVector.GetNss ()) * symbolDuration.GetNanoSeconds () / 1e9;
double numSymbols;
if (mpdutype == MPDU_IN_AGGREGATE && preamble != WIFI_PREAMBLE_NONE)