dispose the channel from WifiNetDevice

This commit is contained in:
Mathieu Lacage
2007-10-18 11:50:35 +02:00
parent fe2ab99c52
commit 8d46c4debc
2 changed files with 9 additions and 0 deletions

View File

@@ -216,6 +216,14 @@ WifiNetDevice::DoGetChannel (void) const
{
return m_channel;
}
void
WifiNetDevice::DoDispose (void)
{
// chain up.
NetDevice::DoDispose ();
// cleanup local
m_channel = 0;
}
/*****************************************************

View File

@@ -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;