--- a/src/devices/wifi/wifi-mode.cc Mon Oct 01 15:41:19 2007 +0200
+++ b/src/devices/wifi/wifi-mode.cc Tue Oct 02 11:36:12 2007 +0200
@@ -1,4 +1,5 @@
#include "wifi-mode.h"
+#include "ns3/assert.h"
namespace ns3 {
@@ -49,6 +50,8 @@
: m_uid (uid)
{}
+WifiModeFactory::WifiModeFactory ()
+{}
WifiMode
WifiModeFactory::CreateBpsk (std::string uniqueName,
@@ -102,6 +105,13 @@
return uid;
}
+struct WifiModeFactory::WifiModeItem *
+WifiModeFactory::Get (uint32_t uid)
+{
+ NS_ASSERT (uid > 1);
+ return &m_itemList[uid - 1];
+}
+
WifiModeFactory *
WifiModeFactory::GetFactory (void)
{