add WifiPhy::GetDevice
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed, 21 Nov 2007 11:11:05 +0100
changeset 2155 194dd8bdcf56
parent 2154 4c0e94f7237b
child 2156 754a843db672
add WifiPhy::GetDevice
src/devices/wifi/wifi-phy.cc
src/devices/wifi/wifi-phy.h
--- a/src/devices/wifi/wifi-phy.cc	Wed Nov 21 10:02:17 2007 +0100
+++ b/src/devices/wifi/wifi-phy.cc	Wed Nov 21 11:11:05 2007 +0100
@@ -213,6 +213,12 @@
   m_modes.clear ();
 }
 
+Ptr<WifiNetDevice> 
+WifiPhy::GetDevice (void) const
+{
+  return m_device;
+}
+
 Ptr<TraceResolver> 
 WifiPhy::GetTraceResolver (void) const
 {
--- a/src/devices/wifi/wifi-phy.h	Wed Nov 21 10:02:17 2007 +0100
+++ b/src/devices/wifi/wifi-phy.h	Wed Nov 21 11:11:05 2007 +0100
@@ -131,6 +131,8 @@
   WifiPhy (Ptr<WifiNetDevice> device);
   virtual ~WifiPhy ();
 
+  Ptr<WifiNetDevice> GetDevice (void) const;
+
   /**
    * \param channel the channel to connect to.
    */