From 74f35f06e3fb83218f3151d1dbdcb0582fbeb112 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Mon, 29 Oct 2007 16:34:26 +0100 Subject: [PATCH] port to new Channel API. --- src/devices/wifi/wifi-channel.cc | 2 +- src/devices/wifi/wifi-channel.h | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/devices/wifi/wifi-channel.cc b/src/devices/wifi/wifi-channel.cc index 89dec72c3..05c3448af 100644 --- a/src/devices/wifi/wifi-channel.cc +++ b/src/devices/wifi/wifi-channel.cc @@ -91,7 +91,7 @@ WifiChannel::GetNDevices (void) const return m_deviceList.size (); } Ptr -WifiChannel::GetDevice (uint32_t i) const +WifiChannel::DoGetDevice (uint32_t i) const { return m_deviceList[i].first; } diff --git a/src/devices/wifi/wifi-channel.h b/src/devices/wifi/wifi-channel.h index 12efe7fac..e0c76ef99 100644 --- a/src/devices/wifi/wifi-channel.h +++ b/src/devices/wifi/wifi-channel.h @@ -64,15 +64,6 @@ public: * Overriden from the NetDevice base class. */ virtual uint32_t GetNDevices (void) const; - /** - * \param i index of the requested network interface. - * \returns the requested network interfaces connected to - * this channel. - * - * Overriden from the NetDevice base class. - * Indexes start at 0 and end at n-1. - */ - virtual Ptr GetDevice (uint32_t i) const ; /** * \param loss the new propagation loss model. @@ -110,6 +101,16 @@ private: typedef std::vector, ReceiveCallback> > DeviceList; void Receive (uint32_t i, const Packet &packet, double rxPowerDbm, WifiMode txMode, WifiPreamble preamble) const; + /** + * \param i index of the requested network interface. + * \returns the requested network interfaces connected to + * this channel. + * + * Overriden from the NetDevice base class. + * Indexes start at 0 and end at n-1. + */ + virtual Ptr DoGetDevice (uint32_t i) const ; + DeviceList m_deviceList; Ptr m_loss;