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/udp-server.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...
 

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 61 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.