senf::emu::RegulatoryRule Class Reference

#include <senf/Ext/NetEmu/WLAN/Regulatory.hh>

Inheritance diagram for senf::emu::RegulatoryRule:

Public Types

enum  Flags : std::uint32_t {
  None = 0, NoOFDM = NL80211_RRF_NO_OFDM, NoCCK = NL80211_RRF_NO_CCK, NoIndoor = NL80211_RRF_NO_INDOOR,
  NoOutdoor = NL80211_RRF_NO_OUTDOOR, DFS = NL80211_RRF_DFS, PTPOnly = NL80211_RRF_PTP_ONLY, PTMPOnly = NL80211_RRF_PTMP_ONLY,
  NoIR = NL80211_RRF_NO_IR, NoIBSS = __NL80211_RRF_NO_IBSS, AutoBW = NL80211_RRF_AUTO_BW
}
 

Public Member Functions

 RegulatoryRule ()
 
RegulatoryRulefrequencyRange (std::uint32_t lower, std::uint32_t upper)
 
RegulatoryRulemaxBandwidth (std::uint32_t bandwidth)
 
RegulatoryRulemaxAntennaGain (std::int32_t gain)
 
RegulatoryRulemaxEIRP (std::int32_t eirp)
 
RegulatoryRulecacTime (std::uint32_t cac)
 
RegulatoryRulenoOFDM (bool flag=true)
 
RegulatoryRulenoCCK (bool flag=true)
 
RegulatoryRulenoIndoor (bool flag=true)
 
RegulatoryRulenoOutdoor (bool flag=true)
 
RegulatoryRuledfsRequired (bool flag=true)
 
RegulatoryRuleptpOnly (bool flag=true)
 
RegulatoryRuleptmpOnly (bool flag=true)
 
RegulatoryRulenoIR (bool flag=true)
 
RegulatoryRuleautoBw (bool flag=true)
 
RegulatoryRuleflags (std::uint32_t f)
 
std::uint32_t frequencyRangeBegin () const
 
std::uint32_t frequencyRangeEnd () const
 
std::uint32_t maxBandwidth () const
 
std::int32_t maxAntennaGain () const
 
std::int32_t maxEIRP () const
 
std::uint32_t cacTime () const
 
bool noOFDM () const
 
bool noCCK () const
 
bool noIndoor () const
 
bool noOutdoor () const
 
bool dfsRequired () const
 
bool ptpOnly () const
 
bool ptmpOnly () const
 
bool noIR () const
 
bool autoBw () const
 
std::uint32_t flags () const
 
bool operator== (RegulatoryRule const &other) const
 
bool operator< (RegulatoryRule const &other) const
 
bool isEqualKernel (RegulatoryRule const &other) const
 

Detailed Description

Definition at line 33 of file Regulatory.hh.

Member Enumeration Documentation

◆ Flags

enum senf::emu::RegulatoryRule::Flags : std::uint32_t
Enumerator
None 
NoOFDM 
NoCCK 
NoIndoor 
NoOutdoor 
DFS 
PTPOnly 
PTMPOnly 
NoIR 
NoIBSS 
AutoBW 

Definition at line 38 of file Regulatory.hh.

Constructor & Destructor Documentation

◆ RegulatoryRule()

senf::emu::RegulatoryRule::RegulatoryRule ( )

Definition at line 28 of file Regulatory.cc.

Member Function Documentation

◆ autoBw() [1/2]

RegulatoryRule& senf::emu::RegulatoryRule::autoBw ( bool  flag = true)

◆ autoBw() [2/2]

bool senf::emu::RegulatoryRule::autoBw ( ) const

◆ cacTime() [1/2]

senf::emu::RegulatoryRule & senf::emu::RegulatoryRule::cacTime ( std::uint32_t  cac)

Definition at line 118 of file Regulatory.cc.

◆ cacTime() [2/2]

std::uint32_t senf::emu::RegulatoryRule::cacTime ( ) const

Definition at line 56 of file Regulatory.cc.

◆ dfsRequired() [1/2]

RegulatoryRule& senf::emu::RegulatoryRule::dfsRequired ( bool  flag = true)

◆ dfsRequired() [2/2]

bool senf::emu::RegulatoryRule::dfsRequired ( ) const

◆ flags() [1/2]

senf::emu::RegulatoryRule & senf::emu::RegulatoryRule::flags ( std::uint32_t  f)

Definition at line 130 of file Regulatory.cc.

◆ flags() [2/2]

std::uint32_t senf::emu::RegulatoryRule::flags ( ) const

Definition at line 93 of file Regulatory.cc.

◆ frequencyRange()

senf::emu::RegulatoryRule & senf::emu::RegulatoryRule::frequencyRange ( std::uint32_t  lower,
std::uint32_t  upper 
)

Definition at line 99 of file Regulatory.cc.

◆ frequencyRangeBegin()

std::uint32_t senf::emu::RegulatoryRule::frequencyRangeBegin ( ) const

Definition at line 32 of file Regulatory.cc.

◆ frequencyRangeEnd()

std::uint32_t senf::emu::RegulatoryRule::frequencyRangeEnd ( ) const

Definition at line 38 of file Regulatory.cc.

◆ isEqualKernel()

bool senf::emu::RegulatoryRule::isEqualKernel ( RegulatoryRule const &  other) const

Definition at line 173 of file Regulatory.cc.

◆ maxAntennaGain() [1/2]

senf::emu::RegulatoryRule & senf::emu::RegulatoryRule::maxAntennaGain ( std::int32_t  gain)

Definition at line 124 of file Regulatory.cc.

◆ maxAntennaGain() [2/2]

std::int32_t senf::emu::RegulatoryRule::maxAntennaGain ( ) const

Definition at line 62 of file Regulatory.cc.

◆ maxBandwidth() [1/2]

senf::emu::RegulatoryRule & senf::emu::RegulatoryRule::maxBandwidth ( std::uint32_t  bandwidth)

Definition at line 106 of file Regulatory.cc.

◆ maxBandwidth() [2/2]

std::uint32_t senf::emu::RegulatoryRule::maxBandwidth ( ) const

Definition at line 44 of file Regulatory.cc.

◆ maxEIRP() [1/2]

senf::emu::RegulatoryRule & senf::emu::RegulatoryRule::maxEIRP ( std::int32_t  eirp)

Definition at line 112 of file Regulatory.cc.

◆ maxEIRP() [2/2]

std::int32_t senf::emu::RegulatoryRule::maxEIRP ( ) const

Definition at line 50 of file Regulatory.cc.

◆ noCCK() [1/2]

RegulatoryRule& senf::emu::RegulatoryRule::noCCK ( bool  flag = true)

◆ noCCK() [2/2]

bool senf::emu::RegulatoryRule::noCCK ( ) const

◆ noIndoor() [1/2]

RegulatoryRule& senf::emu::RegulatoryRule::noIndoor ( bool  flag = true)

◆ noIndoor() [2/2]

bool senf::emu::RegulatoryRule::noIndoor ( ) const

◆ noIR() [1/2]

RegulatoryRule& senf::emu::RegulatoryRule::noIR ( bool  flag = true)

◆ noIR() [2/2]

bool senf::emu::RegulatoryRule::noIR ( ) const

◆ noOFDM() [1/2]

RegulatoryRule& senf::emu::RegulatoryRule::noOFDM ( bool  flag = true)

◆ noOFDM() [2/2]

bool senf::emu::RegulatoryRule::noOFDM ( ) const

◆ noOutdoor() [1/2]

RegulatoryRule& senf::emu::RegulatoryRule::noOutdoor ( bool  flag = true)

◆ noOutdoor() [2/2]

bool senf::emu::RegulatoryRule::noOutdoor ( ) const

◆ operator<()

bool senf::emu::RegulatoryRule::operator< ( RegulatoryRule const &  other) const

Definition at line 157 of file Regulatory.cc.

◆ operator==()

bool senf::emu::RegulatoryRule::operator== ( RegulatoryRule const &  other) const

Definition at line 136 of file Regulatory.cc.

◆ ptmpOnly() [1/2]

RegulatoryRule& senf::emu::RegulatoryRule::ptmpOnly ( bool  flag = true)

◆ ptmpOnly() [2/2]

bool senf::emu::RegulatoryRule::ptmpOnly ( ) const

◆ ptpOnly() [1/2]

RegulatoryRule& senf::emu::RegulatoryRule::ptpOnly ( bool  flag = true)

◆ ptpOnly() [2/2]

bool senf::emu::RegulatoryRule::ptpOnly ( ) const

The documentation for this class was generated from the following files: