wifi: Fix number of antennas not set when calling one of the WifiPpdu constructor

This commit is contained in:
Sébastien Deronne
2023-07-26 20:15:05 +02:00
committed by Sébastien Deronne
parent 1b47675427
commit d46f8857d7

View File

@@ -42,7 +42,8 @@ WifiPpdu::WifiPpdu(Ptr<const WifiPsdu> psdu,
m_txVector(txVector),
m_operatingChannel(channel),
m_truncatedTx(false),
m_txPowerLevel(txVector.GetTxPowerLevel())
m_txPowerLevel(txVector.GetTxPowerLevel()),
m_txAntennas(txVector.GetNTx())
{
NS_LOG_FUNCTION(this << *psdu << txVector << channel << uid);
m_psdus.insert(std::make_pair(SU_STA_ID, psdu));