A Discrete-Event Network Simulator
API
wifi-backward-compatibility.cc File Reference
#include "ns3/boolean.h"
#include "ns3/command-line.h"
#include "ns3/config.h"
#include "ns3/enum.h"
#include "ns3/internet-stack-helper.h"
#include "ns3/ipv4-address-helper.h"
#include "ns3/ipv4-global-routing-helper.h"
#include "ns3/log.h"
#include "ns3/mobility-helper.h"
#include "ns3/packet-sink-helper.h"
#include "ns3/ssid.h"
#include "ns3/tuple.h"
#include "ns3/udp-client-server-helper.h"
#include "ns3/uinteger.h"
#include "ns3/yans-wifi-channel.h"
#include "ns3/yans-wifi-helper.h"
+ Include dependency graph for wifi-backward-compatibility.cc:

Go to the source code of this file.

Functions

std::pair< WifiStandard, WifiPhyBandConvertStringToStandardAndBand (std::string version)
 Convert a string (e.g., "80211a") to a pair {WifiStandard, WifiPhyBand}. More...
 

Detailed Description

Usage

$ ./ns3 run "wifi-backward-compatibility [Program Options]"

Program Options

–simulationTime
Simulation time in seconds [10]
–apVersion
The standard version used by the AP: 80211a, 80211b, 80211g, 80211p, 80211n_2_4GHZ, 80211n_5GHZ, 80211ac, 80211ax_2_4GHZ or 80211ax_5GHZ [80211a]
–staVersion
The standard version used by the station: 80211a, 80211b, 80211g, 80211_10MHZ, 80211_5MHZ, 80211n_2_4GHZ, 80211n_5GHZ, 80211ac, 80211ax_2_4GHZ or 80211ax_5GHZ [80211n_5GHZ]
–apRaa
Rate adaptation algorithm used by the AP [Minstrel]
–staRaa
Rate adaptation algorithm used by the station [MinstrelHt]
–apHasTraffic
Enable/disable traffic on the AP [false]
–staHasTraffic
Enable/disable traffic on the station [true]

Definition in file wifi-backward-compatibility.cc.

Function Documentation

◆ ConvertStringToStandardAndBand()

std::pair<WifiStandard, WifiPhyBand> ConvertStringToStandardAndBand ( std::string  version)

Convert a string (e.g., "80211a") to a pair {WifiStandard, WifiPhyBand}.

Parameters
versionThe WiFi standard version.
Returns
a pair of WifiStandard, WifiPhyBand

Definition at line 60 of file wifi-backward-compatibility.cc.

References conf::version, ns3::WIFI_PHY_BAND_2_4GHZ, ns3::WIFI_PHY_BAND_5GHZ, ns3::WIFI_STANDARD_80211a, ns3::WIFI_STANDARD_80211ac, ns3::WIFI_STANDARD_80211ax, ns3::WIFI_STANDARD_80211b, ns3::WIFI_STANDARD_80211g, ns3::WIFI_STANDARD_80211n, and ns3::WIFI_STANDARD_80211p.