--- 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 ()
{