dispose the channel from WifiNetDevice
This commit is contained in:
@@ -216,6 +216,14 @@ WifiNetDevice::DoGetChannel (void) const
|
||||
{
|
||||
return m_channel;
|
||||
}
|
||||
void
|
||||
WifiNetDevice::DoDispose (void)
|
||||
{
|
||||
// chain up.
|
||||
NetDevice::DoDispose ();
|
||||
// cleanup local
|
||||
m_channel = 0;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************
|
||||
|
||||
@@ -70,6 +70,7 @@ private:
|
||||
protected:
|
||||
WifiNetDevice (Ptr<Node> node);
|
||||
void DoForwardUp (Packet packet, const Mac48Address &from);
|
||||
virtual void DoDispose (void);
|
||||
DcaTxop *CreateDca (uint32_t minCw, uint32_t maxCw) const;
|
||||
|
||||
Ptr<WifiChannel> m_channel;
|
||||
|
||||
Reference in New Issue
Block a user