diff --git a/src/devices/wifi/mac-low.cc b/src/devices/wifi/mac-low.cc index 92b310ec8..32825901b 100644 --- a/src/devices/wifi/mac-low.cc +++ b/src/devices/wifi/mac-low.cc @@ -414,7 +414,7 @@ MacLow::StartTransmission (Ptr packet, } void -MacLow::ReceiveError (Ptr packet, double rxSnr) +MacLow::ReceiveError (Ptr packet, double rxSnr) { NS_LOG_FUNCTION (this << packet << rxSnr); MY_DEBUG ("rx failed "); diff --git a/src/devices/wifi/mac-low.h b/src/devices/wifi/mac-low.h index 7dc500fd2..3933d5790 100644 --- a/src/devices/wifi/mac-low.h +++ b/src/devices/wifi/mac-low.h @@ -339,7 +339,7 @@ public: * This method is typically invoked by the lower PHY layer to notify * the MAC layer that a packet was unsuccessfully received. */ - void ReceiveError (Ptr packet, double rxSnr); + void ReceiveError (Ptr packet, double rxSnr); private: void CancelAllEvents (void); uint32_t GetAckSize (void) const; diff --git a/src/devices/wifi/wifi-phy-state-helper.cc b/src/devices/wifi/wifi-phy-state-helper.cc index 1b64a0749..fb53429b1 100644 --- a/src/devices/wifi/wifi-phy-state-helper.cc +++ b/src/devices/wifi/wifi-phy-state-helper.cc @@ -301,8 +301,7 @@ WifiPhyStateHelper::SwitchFromSyncEndError (Ptr packet, double snr DoSwitchFromSync (); if (!m_syncErrorCallback.IsNull ()) { - // XXX - m_syncErrorCallback (packet->Copy (), snr); + m_syncErrorCallback (packet, snr); } } diff --git a/src/devices/wifi/wifi-phy.h b/src/devices/wifi/wifi-phy.h index d9bb02951..9357c978e 100644 --- a/src/devices/wifi/wifi-phy.h +++ b/src/devices/wifi/wifi-phy.h @@ -121,7 +121,7 @@ public: * arg1: packet received unsuccessfully * arg2: snr of packet */ - typedef Callback, double> SyncErrorCallback; + typedef Callback, double> SyncErrorCallback; static TypeId GetTypeId (void);