From 14ccd7250559d072a84b411b63bc8d4df9541368 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Thu, 13 Mar 2008 11:21:12 -0700 Subject: [PATCH] rework the Wifi API to not use a single WifiNetDevice::Setup method --- src/devices/wifi/wifi-helper.cc | 5 ++- src/devices/wifi/wifi-net-device.cc | 60 ++++++++++++++++++++++------- src/devices/wifi/wifi-net-device.h | 10 +++-- 3 files changed, 56 insertions(+), 19 deletions(-) diff --git a/src/devices/wifi/wifi-helper.cc b/src/devices/wifi/wifi-helper.cc index 589d9643c..69c373c41 100644 --- a/src/devices/wifi/wifi-helper.cc +++ b/src/devices/wifi/wifi-helper.cc @@ -110,7 +110,10 @@ WifiHelper::Build (NodeContainer c, Ptr channel) const Ptr manager = m_stationManager.Create (); Ptr mac = m_mac.Create (); Ptr phy = m_phy.Create (); - device->Setup (node, mac, phy, manager, channel); + device->SetMac (mac); + device->SetPhy (phy); + device->SetRemoteStationManager (manager); + device->SetChannel (channel); node->AddDevice (device); devices.Add (device); NS_LOG_DEBUG ("node="<