src/devices/wifi/wifi-channel.h
changeset 1920 1d4864775cf8
parent 1919 46ed9ed9dac0
child 1961 c61eab0e89c4
--- a/src/devices/wifi/wifi-channel.h	Tue Oct 09 10:21:46 2007 +0200
+++ b/src/devices/wifi/wifi-channel.h	Tue Oct 09 11:07:05 2007 +0200
@@ -25,6 +25,7 @@
 #include "ns3/packet.h"
 #include "ns3/channel.h"
 #include "wifi-mode.h"
+#include "wifi-preamble.h"
 
 namespace ns3 {
 
@@ -35,7 +36,7 @@
 class WifiChannel : public Channel
 {
 public:
-  typedef Callback<void,Packet,double,WifiMode,WifiMode> ReceiveCallback;
+  typedef Callback<void,Packet,double,WifiMode,WifiPreamble> ReceiveCallback;
   WifiChannel ();
   virtual ~WifiChannel ();
 
@@ -47,17 +48,17 @@
 
   void Add (Ptr<NetDevice> device,  ReceiveCallback callback);
   void Send (Ptr<NetDevice> sender, const Packet &packet, double txPowerDbm,
-             WifiMode wifiMode, WifiMode headerMode) const;
+             WifiMode wifiMode, WifiPreamble preamble) const;
 
 private:
   typedef std::vector<std::pair<Ptr<NetDevice>, ReceiveCallback> > DeviceList;
   struct ReceiveData {
     ReceiveData (const Packet &packet, double rxPowerDbm,
-                 WifiMode txMode, WifiMode headerMode);
+                 WifiMode txMode, WifiPreamble preamble);
     Packet m_packet;
     double m_rxPowerDbm;
     WifiMode m_wifiMode;
-    WifiMode m_headerMode;
+    WifiPreamble m_preamble;
   };
   void Receive (uint32_t i, 
                 const struct ReceiveData &data) const;