src/devices/wifi/wifi-channel.cc
changeset 2549 fe90cf0b2c63
parent 2524 db72c0e7743e
child 2602 d9262bff6df2
--- a/src/devices/wifi/wifi-channel.cc	Mon Mar 03 05:11:11 2008 +0100
+++ b/src/devices/wifi/wifi-channel.cc	Mon Mar 03 18:30:29 2008 +0100
@@ -31,9 +31,25 @@
 
 namespace ns3 {
 
+TypeId 
+WifiChannel::GetTypdId (void)
+{
+  static TypeId tid = TypeId ("WifiChannel")
+    .SetParent<WifiChannel> ()
+    .AddConstructor<WifiChannel> ()
+    .AddAttribute ("PropagationLossModel", "XXX",
+                   Ptr<PropagationLossModel> (0),
+                   MakePtrAccessor (&WifiChannel::m_loss),
+                   MakePtrChecker<PropagationLossModel> ())
+    .AddAttribute ("PropagationDelayModel", "XXX",
+                   Ptr<PropagationDelayModel> (0),
+                   MakePtrAccessor (&WifiChannel::m_delay),
+                   MakePtrChecker<PropagationDelayModel> ())
+    ;
+  return tid;
+}
+
 WifiChannel::WifiChannel ()
-  : m_loss (PropagationLossModel::CreateDefault ()),
-    m_delay (PropagationDelayModel::CreateDefault ())
 {}
 WifiChannel::~WifiChannel ()
 {