diff --git a/src/wifi/model/edca-txop-n.cc b/src/wifi/model/edca-txop-n.cc index 8e3b8570b..cf7b70895 100644 --- a/src/wifi/model/edca-txop-n.cc +++ b/src/wifi/model/edca-txop-n.cc @@ -369,7 +369,7 @@ EdcaTxopN::SetWifiRemoteStationManager (Ptr remoteMana void EdcaTxopN::SetTypeOfStation (TypeOfStation type) { - NS_LOG_FUNCTION (this << (uint32_t)type); + NS_LOG_FUNCTION (this << (uint16_t)type); m_typeOfStation = type; } diff --git a/src/wifi/model/wifi-phy.cc b/src/wifi/model/wifi-phy.cc index fdcb4c75c..167125daf 100644 --- a/src/wifi/model/wifi-phy.cc +++ b/src/wifi/model/wifi-phy.cc @@ -2204,8 +2204,8 @@ WifiPhy::SendPacket (Ptr packet, WifiTxVector txVector, MpduType m NS_LOG_FUNCTION (this << packet << txVector.GetMode () << txVector.GetMode ().GetDataRate (txVector) << txVector.GetPreambleType () - << (uint32_t)txVector.GetTxPowerLevel () - << (uint32_t)mpdutype); + << (uint16_t)txVector.GetTxPowerLevel () + << (uint16_t)mpdutype); /* Transmission can happen if: * - we are syncing on a packet. It is the responsability of the * MAC layer to avoid doing this but the PHY does nothing to diff --git a/src/wifi/model/wifi-remote-station-manager.cc b/src/wifi/model/wifi-remote-station-manager.cc index 5c7a85e2b..ca92237a8 100644 --- a/src/wifi/model/wifi-remote-station-manager.cc +++ b/src/wifi/model/wifi-remote-station-manager.cc @@ -1688,7 +1688,7 @@ WifiRemoteStationManager::GetNonErpBasicMode (uint32_t i) const void WifiRemoteStationManager::AddBasicMcs (WifiMode mcs) { - NS_LOG_FUNCTION (this << (uint32_t)mcs.GetMcsValue ()); + NS_LOG_FUNCTION (this << (uint16_t)mcs.GetMcsValue ()); for (uint32_t i = 0; i < GetNBasicMcs (); i++) { if (GetBasicMcs (i) == mcs)