From ca76e83370409523d82a7920f730d9ecf565b96d Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Wed, 21 Nov 2007 11:11:05 +0100 Subject: [PATCH] add WifiPhy::GetDevice --- src/devices/wifi/wifi-phy.cc | 6 ++++++ src/devices/wifi/wifi-phy.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/devices/wifi/wifi-phy.cc b/src/devices/wifi/wifi-phy.cc index 400c86b97..aa695f553 100644 --- a/src/devices/wifi/wifi-phy.cc +++ b/src/devices/wifi/wifi-phy.cc @@ -213,6 +213,12 @@ WifiPhy::~WifiPhy () m_modes.clear (); } +Ptr +WifiPhy::GetDevice (void) const +{ + return m_device; +} + Ptr WifiPhy::GetTraceResolver (void) const { diff --git a/src/devices/wifi/wifi-phy.h b/src/devices/wifi/wifi-phy.h index 0bb3bcdf0..93887eb5b 100644 --- a/src/devices/wifi/wifi-phy.h +++ b/src/devices/wifi/wifi-phy.h @@ -131,6 +131,8 @@ public: WifiPhy (Ptr device); virtual ~WifiPhy (); + Ptr GetDevice (void) const; + /** * \param channel the channel to connect to. */