This commit is contained in:
Mathieu Lacage
2008-06-12 11:14:54 -07:00
parent ffe5305326
commit 5dc4dd0ab9
4 changed files with 4 additions and 5 deletions

View File

@@ -414,7 +414,7 @@ MacLow::StartTransmission (Ptr<const Packet> packet,
}
void
MacLow::ReceiveError (Ptr<Packet> packet, double rxSnr)
MacLow::ReceiveError (Ptr<const Packet> packet, double rxSnr)
{
NS_LOG_FUNCTION (this << packet << rxSnr);
MY_DEBUG ("rx failed ");

View File

@@ -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> packet, double rxSnr);
void ReceiveError (Ptr<const Packet> packet, double rxSnr);
private:
void CancelAllEvents (void);
uint32_t GetAckSize (void) const;

View File

@@ -301,8 +301,7 @@ WifiPhyStateHelper::SwitchFromSyncEndError (Ptr<const Packet> packet, double snr
DoSwitchFromSync ();
if (!m_syncErrorCallback.IsNull ())
{
// XXX
m_syncErrorCallback (packet->Copy (), snr);
m_syncErrorCallback (packet, snr);
}
}

View File

@@ -121,7 +121,7 @@ public:
* arg1: packet received unsuccessfully
* arg2: snr of packet
*/
typedef Callback<void,Ptr<Packet>, double> SyncErrorCallback;
typedef Callback<void,Ptr<const Packet>, double> SyncErrorCallback;
static TypeId GetTypeId (void);