wifi: Cleanup usage of SupportedPcapDataLinkTypes
This commit is contained in:
@@ -79,7 +79,7 @@ int main (int argc, char *argv[])
|
||||
|
||||
YansWifiChannelHelper channel = YansWifiChannelHelper::Default ();
|
||||
YansWifiPhyHelper phy = YansWifiPhyHelper::Default ();
|
||||
phy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
phy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
phy.SetChannel (channel.Create ());
|
||||
|
||||
WifiHelper wifi; //the default standard of 802.11a will be selected by this helper since the program doesn't specify another one
|
||||
|
||||
@@ -147,7 +147,7 @@ Experiment::Run (Parameters params)
|
||||
channel.AddPropagationLoss ("ns3::RangePropagationLossModel");
|
||||
|
||||
YansWifiPhyHelper phy = YansWifiPhyHelper::Default ();
|
||||
phy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
phy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
phy.SetChannel (channel.Create ());
|
||||
|
||||
WifiHelper wifi;
|
||||
|
||||
@@ -88,7 +88,7 @@ int main (int argc, char *argv[])
|
||||
channel.AddPropagationLoss ("ns3::RangePropagationLossModel"); //wireless range limited to 5 meters!
|
||||
|
||||
YansWifiPhyHelper phy = YansWifiPhyHelper::Default ();
|
||||
phy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
phy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
phy.SetChannel (channel.Create ());
|
||||
|
||||
WifiHelper wifi;
|
||||
|
||||
@@ -89,7 +89,7 @@ int main (int argc, char *argv[])
|
||||
|
||||
YansWifiChannelHelper channel = YansWifiChannelHelper::Default ();
|
||||
YansWifiPhyHelper phy = YansWifiPhyHelper::Default ();
|
||||
phy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
phy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
phy.SetChannel (channel.Create ());
|
||||
|
||||
WifiHelper wifi;
|
||||
|
||||
@@ -155,7 +155,7 @@ int main (int argc, char *argv[])
|
||||
// set it to zero; otherwise, gain will be added
|
||||
wifiPhy.Set ("RxGain", DoubleValue (-10) );
|
||||
// ns-3 supports RadioTap and Prism tracing extensions for 802.11b
|
||||
wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
wifiPhy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
|
||||
YansWifiChannelHelper wifiChannel;
|
||||
wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
|
||||
|
||||
@@ -128,7 +128,7 @@ int main (int argc, char *argv[])
|
||||
// set it to zero; otherwise, gain will be added
|
||||
wifiPhy.Set ("RxGain", DoubleValue (0) );
|
||||
// ns-3 supports RadioTap and Prism tracing extensions for 802.11b
|
||||
wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
wifiPhy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
|
||||
YansWifiChannelHelper wifiChannel;
|
||||
wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
|
||||
|
||||
@@ -129,7 +129,7 @@ int main (int argc, char *argv[])
|
||||
// set it to zero; otherwise, gain will be added
|
||||
wifiPhy.Set ("RxGain", DoubleValue (0) );
|
||||
// ns-3 supports RadioTap and Prism tracing extensions for 802.11b
|
||||
wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
wifiPhy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
|
||||
YansWifiChannelHelper wifiChannel;
|
||||
wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
|
||||
|
||||
@@ -184,7 +184,7 @@ int main (int argc, char *argv[])
|
||||
wifiPhy.Set ("CcaMode1Threshold", DoubleValue (0.0) );
|
||||
|
||||
// ns-3 supports RadioTap and Prism tracing extensions for 802.11b
|
||||
wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
wifiPhy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
|
||||
YansWifiChannelHelper wifiChannel;
|
||||
wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
|
||||
|
||||
@@ -121,7 +121,7 @@ int main (int argc, char *argv[])
|
||||
|
||||
YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default ();
|
||||
// ns-3 supports RadioTap and Prism tracing extensions for 802.11b
|
||||
wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
wifiPhy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
|
||||
wifiPhy.Set ("TxPowerStart", DoubleValue (txPowerStart));
|
||||
wifiPhy.Set ("TxPowerEnd", DoubleValue (txPowerEnd));
|
||||
|
||||
@@ -192,7 +192,7 @@ main (int argc, char *argv[])
|
||||
/* Enable Traces */
|
||||
if (pcapTracing)
|
||||
{
|
||||
wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
wifiPhy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
wifiPhy.EnablePcap ("AccessPoint", apDevice);
|
||||
wifiPhy.EnablePcap ("Station", staDevices);
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ int main (int argc, char *argv[])
|
||||
double wifiX = 0.0;
|
||||
|
||||
YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default ();
|
||||
wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
wifiPhy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
|
||||
for (uint32_t i = 0; i < nWifis; ++i)
|
||||
{
|
||||
|
||||
@@ -75,7 +75,7 @@ int main (int argc, char *argv[])
|
||||
// set it to zero; otherwise, gain will be added
|
||||
wifiPhy.Set ("RxGain", DoubleValue (0) );
|
||||
// ns-3 supports RadioTap and Prism tracing extensions for 802.11b
|
||||
wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
wifiPhy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
|
||||
YansWifiChannelHelper wifiChannel;
|
||||
wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
|
||||
|
||||
@@ -111,7 +111,7 @@ main (int argc, char *argv[])
|
||||
// set it to zero; otherwise, gain will be added
|
||||
wifiPhy.Set ("RxGain", DoubleValue (0) );
|
||||
// ns-3 supports RadioTap and Prism tracing extensions for 802.11b
|
||||
wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
wifiPhy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
|
||||
YansWifiChannelHelper wifiChannel;
|
||||
wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
|
||||
|
||||
@@ -361,7 +361,7 @@ BasicEnergyDepletionTest::DepletionTestCase (double simTimeS,
|
||||
*/
|
||||
wifiPhy.Set ("RxGain", DoubleValue (0));
|
||||
// ns-3 supports RadioTap and Prism tracing extensions for 802.11b
|
||||
wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
wifiPhy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
|
||||
YansWifiChannelHelper wifiChannel;
|
||||
wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
|
||||
|
||||
@@ -741,7 +741,7 @@ BatteryLifetimeTest::ConstantLoadTest (double load, Time expLifetime)
|
||||
*/
|
||||
wifiPhy.Set ("RxGain", DoubleValue (0));
|
||||
// ns-3 supports RadioTap and Prism tracing extensions for 802.11b
|
||||
wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
wifiPhy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
|
||||
YansWifiChannelHelper wifiChannel;
|
||||
wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
|
||||
@@ -828,7 +828,7 @@ BatteryLifetimeTest::VariableLoadTest (std::vector<double> loads,
|
||||
*/
|
||||
wifiPhy.Set ("RxGain", DoubleValue (0));
|
||||
// ns-3 supports RadioTap and Prism tracing extensions for 802.11b
|
||||
wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
wifiPhy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
|
||||
YansWifiChannelHelper wifiChannel;
|
||||
wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
|
||||
|
||||
@@ -143,7 +143,7 @@ int main (int argc, char *argv[])
|
||||
// set it to zero; otherwise, gain will be added
|
||||
wifiPhy.Set ("RxGain", DoubleValue (0) );
|
||||
// ns-3 supports RadioTap and Prism tracing extensions for 802.11b
|
||||
wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
wifiPhy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
|
||||
YansWifiChannelHelper wifiChannel;
|
||||
wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
|
||||
|
||||
@@ -161,7 +161,7 @@ WifiInterferenceTestCase::WifiSimpleInterference (std::string phyMode,double Prs
|
||||
wifiPhy.Set ("CcaMode1Threshold", DoubleValue (0.0) );
|
||||
|
||||
// ns-3 supports RadioTap and Prism tracing extensions for 802.11b
|
||||
wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
wifiPhy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
|
||||
YansWifiChannelHelper wifiChannel;
|
||||
wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
|
||||
|
||||
@@ -2243,11 +2243,11 @@ VanetRoutingExperiment::SetupAdhocDevices ()
|
||||
YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default ();
|
||||
wifiPhy.SetChannel (channel);
|
||||
// ns-3 supports generate a pcap trace
|
||||
wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11);
|
||||
wifiPhy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11);
|
||||
|
||||
YansWavePhyHelper wavePhy = YansWavePhyHelper::Default ();
|
||||
wavePhy.SetChannel (channel);
|
||||
wavePhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11);
|
||||
wavePhy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11);
|
||||
|
||||
// Setup WAVE PHY and MAC
|
||||
NqosWaveMacHelper wifi80211pMac = NqosWaveMacHelper::Default ();
|
||||
|
||||
@@ -126,7 +126,7 @@ int main (int argc, char *argv[])
|
||||
Ptr<YansWifiChannel> channel = wifiChannel.Create ();
|
||||
wifiPhy.SetChannel (channel);
|
||||
// ns-3 supports generate a pcap trace
|
||||
wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11);
|
||||
wifiPhy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11);
|
||||
NqosWaveMacHelper wifi80211pMac = NqosWaveMacHelper::Default ();
|
||||
Wifi80211pHelper wifi80211p = Wifi80211pHelper::Default ();
|
||||
if (verbose)
|
||||
|
||||
@@ -101,7 +101,7 @@ WaveNetDeviceExample::CreateWaveNodes (void)
|
||||
YansWifiChannelHelper waveChannel = YansWifiChannelHelper::Default ();
|
||||
YansWavePhyHelper wavePhy = YansWavePhyHelper::Default ();
|
||||
wavePhy.SetChannel (waveChannel.Create ());
|
||||
wavePhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11);
|
||||
wavePhy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11);
|
||||
QosWaveMacHelper waveMac = QosWaveMacHelper::Default ();
|
||||
WaveHelper waveHelper = WaveHelper::Default ();
|
||||
devices = waveHelper.Install (wavePhy, waveMac, nodes);
|
||||
|
||||
@@ -767,7 +767,7 @@ Finally, we manually place them by using the ``ns3::ListPositionAllocator``::
|
||||
|
||||
YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default ();
|
||||
// ns-3 supports RadioTap and Prism tracing extensions for 802.11
|
||||
wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
wifiPhy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
|
||||
YansWifiChannelHelper wifiChannel;
|
||||
wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
|
||||
@@ -814,7 +814,7 @@ Each node is equipped with 802.11b Wi-Fi device::
|
||||
|
||||
YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default ();
|
||||
// ns-3 supports RadioTap and Prism tracing extensions for 802.11
|
||||
wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
wifiPhy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11_RADIO);
|
||||
|
||||
YansWifiChannelHelper wifiChannel;
|
||||
// reference loss must be changed since 802.11b is operating at 2.4GHz
|
||||
|
||||
Reference in New Issue
Block a user