fixed Bug 941 - Wifi Dcf attributes not reachable
authorNicola Baldo <nbaldo@cttc.es>
Tue, 03 Aug 2010 18:02:55 +0200
changeset 6477 55e4c70ff299
parent 6476 d95255206be2
child 6479 b5efe55e2f6d
fixed Bug 941 - Wifi Dcf attributes not reachable
src/devices/wifi/dca-txop.cc
src/devices/wifi/dca-txop.h
src/devices/wifi/edca-txop-n.cc
--- a/src/devices/wifi/dca-txop.cc	Tue Aug 03 11:04:05 2010 +0100
+++ b/src/devices/wifi/dca-txop.cc	Tue Aug 03 18:02:55 2010 +0200
@@ -60,7 +60,6 @@
   virtual void DoNotifyChannelSwitching (void) { 
     m_txop->NotifyChannelSwitching ();
   }
-
   DcaTxop *m_txop;
 };
 
@@ -101,7 +100,7 @@
 DcaTxop::GetTypeId (void)
 {
   static TypeId tid = TypeId ("ns3::DcaTxop")
-    .SetParent<Object> ()
+    .SetParent (ns3::Dcf::GetTypeId ())
     .AddConstructor<DcaTxop> ()
     ;
   return tid;
--- a/src/devices/wifi/dca-txop.h	Tue Aug 03 11:04:05 2010 +0100
+++ b/src/devices/wifi/dca-txop.h	Tue Aug 03 18:02:55 2010 +0200
@@ -26,10 +26,10 @@
 #include "ns3/packet.h"
 #include "ns3/nstime.h"
 #include "ns3/object.h"
-#include "wifi-mac-header.h"
-#include "wifi-mode.h"
-#include "wifi-remote-station-manager.h"
-#include "dcf.h"
+#include "ns3/wifi-mac-header.h"
+#include "ns3/wifi-mode.h"
+#include "ns3/wifi-remote-station-manager.h"
+#include "ns3/dcf.h"
 
 namespace ns3 {
 
--- a/src/devices/wifi/edca-txop-n.cc	Tue Aug 03 11:04:05 2010 +0100
+++ b/src/devices/wifi/edca-txop-n.cc	Tue Aug 03 18:02:55 2010 +0200
@@ -124,7 +124,7 @@
 EdcaTxopN::GetTypeId (void)
 {
   static TypeId tid = TypeId ("ns3::EdcaTxopN")
-    .SetParent<Object> ()
+    .SetParent (ns3::Dcf::GetTypeId ())
     .AddConstructor<EdcaTxopN> ()
     .AddAttribute ("BlockAckThreshold", "If number of packets in this queue reaches this value,\
                                          block ack mechanism is used. If this value is 0, block ack is never used.",