ensure that all wifi modes are registered
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Tue, 06 Jan 2009 14:25:55 +0100
changeset 4040 df2f5e1ea15b
parent 4039 50a070c2750c
child 4041 c52c1814bd5e
ensure that all wifi modes are registered
src/devices/wifi/wifi-phy.cc
--- a/src/devices/wifi/wifi-phy.cc	Tue Jan 06 13:46:41 2009 +0100
+++ b/src/devices/wifi/wifi-phy.cc	Tue Jan 06 14:25:55 2009 +0100
@@ -81,8 +81,8 @@
 WifiPhy::Get9mba (void)
 {
   static WifiMode mode = WifiModeFactory::CreateBpsk ("wifia-9mbs",
-                                               false,
-                                               20000000, 9000000, 12000000);
+                                                      false,
+                                                      20000000, 9000000, 12000000);
   return mode;
 }
 WifiMode 
@@ -137,3 +137,21 @@
 }
 
 } // namespace ns3
+
+namespace {
+
+static class Constructor
+{
+public:
+  Constructor () {
+    ns3::WifiPhy::Get6mba ();
+    ns3::WifiPhy::Get9mba ();
+    ns3::WifiPhy::Get12mba ();
+    ns3::WifiPhy::Get18mba ();
+    ns3::WifiPhy::Get24mba ();
+    ns3::WifiPhy::Get36mba ();
+    ns3::WifiPhy::Get48mba ();
+    ns3::WifiPhy::Get54mba ();
+  }
+} g_constructor;
+}