constify
This commit is contained in:
@@ -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 ");
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user