ensure we use a correct typename for the TypeId
authorMirko Banchi <mk.banchi@gmail.com>
Fri, 24 Apr 2009 08:52:46 +0200
changeset 4398 a07440ab970c
parent 4397 fd344e3bceac
child 4399 3858687497ce
ensure we use a correct typename for the TypeId
src/devices/wifi/dca-txop.cc
--- a/src/devices/wifi/dca-txop.cc	Thu Apr 23 10:34:24 2009 +0200
+++ b/src/devices/wifi/dca-txop.cc	Fri Apr 24 08:52:46 2009 +0200
@@ -93,10 +93,12 @@
   DcaTxop *m_txop;
 };
 
+NS_OBJECT_ENSURE_REGISTERED (DcaTxop);
+
 TypeId 
 DcaTxop::GetTypeId (void)
 {
-  static TypeId tid = TypeId ("DcaTxop")
+  static TypeId tid = TypeId ("ns3::DcaTxop")
     .SetParent<Object> ()
     .AddConstructor<DcaTxop> ()
     .AddAttribute ("MinCw", "The minimum value of the contention window.",