From 03e0467f1d9b61559ea7651c4fae6a537e6f37ef Mon Sep 17 00:00:00 2001 From: Sebastien Deronne Date: Sat, 30 Jan 2021 10:29:12 +0100 Subject: [PATCH] wifi: Fix settings of TX antennas used for the transmission in TXVECTOR --- src/wifi/model/wifi-remote-station-manager.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wifi/model/wifi-remote-station-manager.cc b/src/wifi/model/wifi-remote-station-manager.cc index 60af64719..dd4f6d506 100644 --- a/src/wifi/model/wifi-remote-station-manager.cc +++ b/src/wifi/model/wifi-remote-station-manager.cc @@ -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 (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 (m_wifiPhy->GetDevice ()))); - v.SetNTx (1); + v.SetNTx (GetNumberOfAntennas ()); v.SetNss (1); v.SetNess (0); return v;