wifi: Fix settings of TX antennas used for the transmission in TXVECTOR

This commit is contained in:
Sebastien Deronne
2021-01-30 10:29:12 +01:00
parent dfad79ea0e
commit 03e0467f1d

View File

@@ -499,7 +499,7 @@ WifiRemoteStationManager::GetDataTxVector (const WifiMacHeader &header)
v.SetTxPowerLevel (m_defaultTxPowerLevel);
v.SetChannelWidth (GetChannelWidthForTransmission (mode, m_wifiPhy->GetChannelWidth ()));
v.SetGuardInterval (ConvertGuardIntervalToNanoSeconds (mode, DynamicCast<WifiNetDevice> (m_wifiPhy->GetDevice ())));
v.SetNTx (1);
v.SetNTx (GetNumberOfAntennas ());
v.SetNss (1);
v.SetNess (0);
return v;
@@ -585,7 +585,7 @@ WifiRemoteStationManager::GetRtsTxVector (Mac48Address address)
v.SetTxPowerLevel (m_defaultTxPowerLevel);
v.SetChannelWidth (GetChannelWidthForTransmission (mode, m_wifiPhy->GetChannelWidth ()));
v.SetGuardInterval (ConvertGuardIntervalToNanoSeconds (mode, DynamicCast<WifiNetDevice> (m_wifiPhy->GetDevice ())));
v.SetNTx (1);
v.SetNTx (GetNumberOfAntennas ());
v.SetNss (1);
v.SetNess (0);
return v;