Fix WifiMacQueue typeid registration
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Fri, 16 Jan 2009 18:52:00 +0000
changeset 4102 3a5b1ed17edc
parent 4101 ca51ffa0d02b
child 4103 a7dfdc073085
Fix WifiMacQueue typeid registration
src/devices/wifi/wifi-mac-queue.cc
--- a/src/devices/wifi/wifi-mac-queue.cc	Fri Jan 16 17:18:49 2009 +0000
+++ b/src/devices/wifi/wifi-mac-queue.cc	Fri Jan 16 18:52:00 2009 +0000
@@ -28,6 +28,9 @@
 
 namespace ns3 {
 
+NS_OBJECT_ENSURE_REGISTERED (WifiMacQueue);
+
+
 WifiMacQueue::Item::Item (Ptr<const Packet> packet, 
                           WifiMacHeader const &hdr, 
                           Time tstamp)
@@ -37,7 +40,7 @@
 TypeId 
 WifiMacQueue::GetTypeId (void)
 {
-  static TypeId tid = TypeId ("WifiMacQueue")
+  static TypeId tid = TypeId ("ns3::WifiMacQueue")
     .SetParent<Object> ()
     .AddConstructor<WifiMacQueue> ()
     .AddAttribute ("MaxPacketNumber", "If a packet arrives when there are already this number of packets, it is dropped.",