A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
wifi-fils-frame-test.cc File Reference
#include "ns3/ap-wifi-mac.h"
#include "ns3/assert.h"
#include "ns3/attribute-container.h"
#include "ns3/boolean.h"
#include "ns3/enum.h"
#include "ns3/error-model.h"
#include "ns3/log.h"
#include "ns3/mac48-address.h"
#include "ns3/mgt-action-headers.h"
#include "ns3/mgt-headers.h"
#include "ns3/mobility-helper.h"
#include "ns3/node-container.h"
#include "ns3/object-factory.h"
#include "ns3/rng-seed-manager.h"
#include "ns3/simulator.h"
#include "ns3/spectrum-helper.h"
#include "ns3/string.h"
#include "ns3/test.h"
#include "ns3/tuple.h"
#include "ns3/wifi-mac-header.h"
#include "ns3/wifi-mac-helper.h"
#include "ns3/wifi-net-device.h"
#include "ns3/wifi-psdu.h"
#include "ns3/wifi-utils.h"
#include "ns3/yans-wifi-helper.h"
#include "ns3/yans-wifi-phy.h"
#include <algorithm>
#include <filesystem>
#include <iterator>
#include <optional>
#include <variant>
+ Include dependency graph for wifi-fils-frame-test.cc:

Go to the source code of this file.

Classes

struct  WifiFilsFrameTest::PsduCapture
 Transmitted PSDUs. More...
 
struct  WifiFilsFrameTest::TimeStats
 Timing statistic for test validation. More...
 
class  WifiFilsFrameTest
 Test FILS frames. More...
 
struct  WifiFilsFrameTestParams
 Wi-Fi FILS frame test parameters. More...
 
class  WifiFilsFrameTestSuite
 WiFi FILS frame Test Suite. More...
 

Enumerations

enum class  WifiFilsFrameTestCase : uint8_t {
  BW20MHZ_NSS1_DISC = 0 , BW20MHZ_NSS3_DISC , BW40MHZ_NSS2_DISC , BW80MHZ_NSS2_DISC ,
  BW160MHZ_NSS2_DISC , BW160MHZ_NSS2_PROBE , COUNT
}
 Testcases for FILS frame test. More...
 

Functions

WifiFilsFrameTestParams WifiFilsFrameTestBuildCase (const WifiFilsFrameTestCase &tc)
 

Variables

static const auto DEFAULT_AP_LOC = Vector(0.01, 0, 0)
 
static const auto DEFAULT_BAND = WifiPhyBand::WIFI_PHY_BAND_6GHZ
 
static const auto DEFAULT_BANDWIDTH = 20
 Fast Initial Link Setup (FILS) frame Test Suite Test suite intended to test (de)serialization and timing of frames associated with FILS procedure.
 
static const auto DEFAULT_BCN_INTRVL = 100 * WIFI_TU
 
static const auto DEFAULT_CLIENT_LOC = Vector(0, 0, 0)
 
static const auto DEFAULT_ENABLE_PCAP = false
 
static const auto DEFAULT_FILS_INTRVL = 20 * WIFI_TU
 
static const auto DEFAULT_OUTDIR = "."
 
static const auto DEFAULT_PCAP_PREFIX = "ap-fils"
 
static const auto DEFAULT_PRIMARY_INDEX = 0
 
static const auto DEFAULT_RNG_RUN = 7
 
static const auto DEFAULT_RNG_SEED = 3
 
static const auto DEFAULT_SIM_STOP_TIME = MilliSeconds(610)
 
static const auto DEFAULT_SSID = "01234567890123456789012345678901"
 
static const auto DEFAULT_STANDARD = WifiStandard::WIFI_STANDARD_80211ax
 
static const auto DEFAULT_STREAM_INDEX = 100
 
static const auto DEFAULT_TIMING_TOLERANCE = MicroSeconds(100)
 
static const auto DEFAULT_UNSOL_PROBE_RESP_EN = false
 
static const auto DUMMY_AP_ADDR = Mac48Address("00:00:00:00:00:10")
 
static WifiFilsFrameTestSuite g_WifiFilsFrameTestSuite
 
static const auto INVALID_CHAN_NUM = 0
 
static const uint8_t WIFI_6GHZ_FD_PHY_IDX = 4
 

Enumeration Type Documentation

◆ WifiFilsFrameTestCase

enum class WifiFilsFrameTestCase : uint8_t
strong

Testcases for FILS frame test.

Enumerator
BW20MHZ_NSS1_DISC 
BW20MHZ_NSS3_DISC 
BW40MHZ_NSS2_DISC 
BW80MHZ_NSS2_DISC 
BW160MHZ_NSS2_DISC 
BW160MHZ_NSS2_PROBE 
COUNT 

Definition at line 368 of file wifi-fils-frame-test.cc.

Function Documentation

◆ WifiFilsFrameTestBuildCase()

WifiFilsFrameTestParams WifiFilsFrameTestBuildCase ( const WifiFilsFrameTestCase & tc)

Definition at line 380 of file wifi-fils-frame-test.cc.

References BW160MHZ_NSS2_DISC, BW160MHZ_NSS2_PROBE, BW20MHZ_NSS1_DISC, BW20MHZ_NSS3_DISC, BW40MHZ_NSS2_DISC, BW80MHZ_NSS2_DISC, DEFAULT_SSID, NS_ABORT_MSG, and ns3::WIFI_TU.

Referenced by WifiFilsFrameTestSuite::WifiFilsFrameTestSuite().

+ Here is the caller graph for this function:

Variable Documentation

◆ DEFAULT_AP_LOC

const auto DEFAULT_AP_LOC = Vector(0.01, 0, 0)
static

Definition at line 71 of file wifi-fils-frame-test.cc.

Referenced by WifiFilsFrameTest::SetupDevice().

◆ DEFAULT_BAND

const auto DEFAULT_BAND = WifiPhyBand::WIFI_PHY_BAND_6GHZ
static

Definition at line 62 of file wifi-fils-frame-test.cc.

Referenced by WifiFilsFrameTest::SetupDevice().

◆ DEFAULT_BANDWIDTH

const auto DEFAULT_BANDWIDTH = 20
static

Fast Initial Link Setup (FILS) frame Test Suite Test suite intended to test (de)serialization and timing of frames associated with FILS procedure.

The test creates a BSS consisting of an AP and client and and analyzes the timings and contents of frames associated with FILS procedure.

Definition at line 53 of file wifi-fils-frame-test.cc.

◆ DEFAULT_BCN_INTRVL

const auto DEFAULT_BCN_INTRVL = 100 * WIFI_TU
static

Definition at line 64 of file wifi-fils-frame-test.cc.

◆ DEFAULT_CLIENT_LOC

const auto DEFAULT_CLIENT_LOC = Vector(0, 0, 0)
static

Definition at line 72 of file wifi-fils-frame-test.cc.

Referenced by WifiFilsFrameTest::SetupDevice().

◆ DEFAULT_ENABLE_PCAP

const auto DEFAULT_ENABLE_PCAP = false
static

Definition at line 70 of file wifi-fils-frame-test.cc.

Referenced by WifiFilsFrameTest::SetupDevice().

◆ DEFAULT_FILS_INTRVL

const auto DEFAULT_FILS_INTRVL = 20 * WIFI_TU
static

Definition at line 65 of file wifi-fils-frame-test.cc.

◆ DEFAULT_OUTDIR

const auto DEFAULT_OUTDIR = "."
static

Definition at line 69 of file wifi-fils-frame-test.cc.

Referenced by WifiFilsFrameTest::SetupDevice().

◆ DEFAULT_PCAP_PREFIX

const auto DEFAULT_PCAP_PREFIX = "ap-fils"
static

Definition at line 68 of file wifi-fils-frame-test.cc.

Referenced by WifiFilsFrameTest::SetupDevice().

◆ DEFAULT_PRIMARY_INDEX

const auto DEFAULT_PRIMARY_INDEX = 0
static

Definition at line 55 of file wifi-fils-frame-test.cc.

Referenced by WifiFilsFrameTest::SetupDevice().

◆ DEFAULT_RNG_RUN

const auto DEFAULT_RNG_RUN = 7
static

Definition at line 58 of file wifi-fils-frame-test.cc.

Referenced by WifiFilsFrameTest::DoSetup().

◆ DEFAULT_RNG_SEED

const auto DEFAULT_RNG_SEED = 3
static

Definition at line 57 of file wifi-fils-frame-test.cc.

Referenced by WifiFilsFrameTest::DoSetup().

◆ DEFAULT_SIM_STOP_TIME

const auto DEFAULT_SIM_STOP_TIME = MilliSeconds(610)
static

◆ DEFAULT_SSID

const auto DEFAULT_SSID = "01234567890123456789012345678901"
static

Definition at line 63 of file wifi-fils-frame-test.cc.

Referenced by WifiFilsFrameTestBuildCase().

◆ DEFAULT_STANDARD

const auto DEFAULT_STANDARD = WifiStandard::WIFI_STANDARD_80211ax
static

Definition at line 61 of file wifi-fils-frame-test.cc.

Referenced by WifiFilsFrameTest::SetupDevice().

◆ DEFAULT_STREAM_INDEX

const auto DEFAULT_STREAM_INDEX = 100
static

Definition at line 59 of file wifi-fils-frame-test.cc.

Referenced by WifiFilsFrameTest::SetupDevice().

◆ DEFAULT_TIMING_TOLERANCE

const auto DEFAULT_TIMING_TOLERANCE = MicroSeconds(100)
static

Definition at line 66 of file wifi-fils-frame-test.cc.

Referenced by WifiFilsFrameTest::ValidateTiming().

◆ DEFAULT_UNSOL_PROBE_RESP_EN

const auto DEFAULT_UNSOL_PROBE_RESP_EN = false
static

Definition at line 67 of file wifi-fils-frame-test.cc.

◆ DUMMY_AP_ADDR

const auto DUMMY_AP_ADDR = Mac48Address("00:00:00:00:00:10")
static

Definition at line 60 of file wifi-fils-frame-test.cc.

◆ g_WifiFilsFrameTestSuite

WifiFilsFrameTestSuite g_WifiFilsFrameTestSuite
static

Definition at line 465 of file wifi-fils-frame-test.cc.

◆ INVALID_CHAN_NUM

const auto INVALID_CHAN_NUM = 0
static

Definition at line 54 of file wifi-fils-frame-test.cc.

Referenced by WifiFilsFrameTest::SetupDevice().

◆ WIFI_6GHZ_FD_PHY_IDX

const uint8_t WIFI_6GHZ_FD_PHY_IDX = 4
static

Definition at line 73 of file wifi-fils-frame-test.cc.

Referenced by WifiFilsFrameTest::ValidateFilsDiscFrame().