diff --git a/src/wifi/model/mac-low.cc b/src/wifi/model/mac-low.cc index 2828d45e5..1583647bf 100644 --- a/src/wifi/model/mac-low.cc +++ b/src/wifi/model/mac-low.cc @@ -1866,7 +1866,7 @@ MacLow::StoreMpduIfNeeded (Ptr packet, WifiMacHeader hdr) BufferedPacket bufferedPacket (packet, hdr); uint16_t endSequence = ((*it).second.first.GetStartingSequence () + 2047) % 4096; - uint16_t mappedSeqControl = QosUtilsMapSeqControlToUniqueInteger (hdr.GetSequenceControl (), endSequence); + uint32_t mappedSeqControl = QosUtilsMapSeqControlToUniqueInteger (hdr.GetSequenceControl (), endSequence); BufferedPacketI i = (*it).second.second.begin (); for (; i != (*it).second.second.end () @@ -1949,7 +1949,7 @@ MacLow::RxCompleteBufferedPacketsWithSmallerSequence (uint16_t seq, Mac48Address if (it != m_bAckAgreements.end ()) { uint16_t endSequence = ((*it).second.first.GetStartingSequence () + 2047) % 4096; - uint16_t mappedStart = QosUtilsMapSeqControlToUniqueInteger (seq, endSequence); + uint32_t mappedStart = QosUtilsMapSeqControlToUniqueInteger (seq, endSequence); BufferedPacketI last = (*it).second.second.begin (); uint16_t guard = 0; if (last != (*it).second.second.end ()) diff --git a/src/wifi/model/minstrel-ht-wifi-manager.cc b/src/wifi/model/minstrel-ht-wifi-manager.cc index c3126093d..9991178a7 100644 --- a/src/wifi/model/minstrel-ht-wifi-manager.cc +++ b/src/wifi/model/minstrel-ht-wifi-manager.cc @@ -1580,7 +1580,7 @@ MinstrelHtWifiManager::CalculateRetransmits (MinstrelHtWifiRemoteStation *statio } double -MinstrelHtWifiManager::CalculateEwmsd (double oldEwmsd, double currentProb, double ewmaProb, uint32_t weight) +MinstrelHtWifiManager::CalculateEwmsd (double oldEwmsd, double currentProb, double ewmaProb, double weight) { double diff, incr, tmp; diff --git a/src/wifi/model/minstrel-ht-wifi-manager.h b/src/wifi/model/minstrel-ht-wifi-manager.h index a31ed84f1..e20fcd1a8 100644 --- a/src/wifi/model/minstrel-ht-wifi-manager.h +++ b/src/wifi/model/minstrel-ht-wifi-manager.h @@ -442,7 +442,7 @@ private: * \param weight the weight * \returns the EWMSD */ - double CalculateEwmsd (double oldEwmsd, double currentProb, double ewmaProb, uint32_t weight); + double CalculateEwmsd (double oldEwmsd, double currentProb, double ewmaProb, double weight); /** * Initialize Sample Table. diff --git a/src/wifi/model/rraa-wifi-manager.cc b/src/wifi/model/rraa-wifi-manager.cc index 79f494b93..4cc952e39 100644 --- a/src/wifi/model/rraa-wifi-manager.cc +++ b/src/wifi/model/rraa-wifi-manager.cc @@ -406,7 +406,7 @@ RraaWifiManager::RunBasicAlgorithm (RraaWifiRemoteStation *station) { NS_LOG_FUNCTION (this << station); WifiRraaThresholds thresholds = GetThresholds (station, station->m_rateIndex); - double ploss = (static_cast (station->m_nFailed) / thresholds.m_ewnd); + double ploss = (station->m_nFailed / thresholds.m_ewnd); if (station->m_counter == 0 || ploss > thresholds.m_mtl) {