add WifiPhy::GetDevice

This commit is contained in:
Mathieu Lacage
2007-11-21 11:11:05 +01:00
parent 4774f44062
commit ca76e83370
2 changed files with 8 additions and 0 deletions

View File

@@ -213,6 +213,12 @@ WifiPhy::~WifiPhy ()
m_modes.clear ();
}
Ptr<WifiNetDevice>
WifiPhy::GetDevice (void) const
{
return m_device;
}
Ptr<TraceResolver>
WifiPhy::GetTraceResolver (void) const
{

View File

@@ -131,6 +131,8 @@ public:
WifiPhy (Ptr<WifiNetDevice> device);
virtual ~WifiPhy ();
Ptr<WifiNetDevice> GetDevice (void) const;
/**
* \param channel the channel to connect to.
*/