wifi: Add the Trigger Responding parameter to the TxVector
This commit is contained in:
committed by
Sébastien Deronne
parent
c7fa7ea163
commit
32f8be80a8
@@ -44,6 +44,7 @@ WifiTxVector::WifiTxVector()
|
||||
m_ldpc(false),
|
||||
m_bssColor(0),
|
||||
m_length(0),
|
||||
m_triggerResponding(false),
|
||||
m_modeInitialized(false),
|
||||
m_inactiveSubchannels(),
|
||||
m_ruAllocation(),
|
||||
@@ -63,7 +64,8 @@ WifiTxVector::WifiTxVector(WifiMode mode,
|
||||
bool stbc,
|
||||
bool ldpc,
|
||||
uint8_t bssColor,
|
||||
uint16_t length)
|
||||
uint16_t length,
|
||||
bool triggerResponding)
|
||||
: m_mode(mode),
|
||||
m_txPowerLevel(powerLevel),
|
||||
m_preamble(preamble),
|
||||
@@ -77,6 +79,7 @@ WifiTxVector::WifiTxVector(WifiMode mode,
|
||||
m_ldpc(ldpc),
|
||||
m_bssColor(bssColor),
|
||||
m_length(length),
|
||||
m_triggerResponding(triggerResponding),
|
||||
m_modeInitialized(true),
|
||||
m_inactiveSubchannels(),
|
||||
m_ruAllocation(),
|
||||
@@ -98,6 +101,7 @@ WifiTxVector::WifiTxVector(const WifiTxVector& txVector)
|
||||
m_ldpc(txVector.m_ldpc),
|
||||
m_bssColor(txVector.m_bssColor),
|
||||
m_length(txVector.m_length),
|
||||
m_triggerResponding(txVector.m_triggerResponding),
|
||||
m_modeInitialized(txVector.m_modeInitialized),
|
||||
m_inactiveSubchannels(txVector.m_inactiveSubchannels),
|
||||
m_sigBMcs(txVector.m_sigBMcs),
|
||||
@@ -357,6 +361,18 @@ WifiTxVector::GetLength() const
|
||||
return m_length;
|
||||
}
|
||||
|
||||
bool
|
||||
WifiTxVector::IsTriggerResponding() const
|
||||
{
|
||||
return m_triggerResponding;
|
||||
}
|
||||
|
||||
void
|
||||
WifiTxVector::SetTriggerResponding(bool triggerResponding)
|
||||
{
|
||||
m_triggerResponding = triggerResponding;
|
||||
}
|
||||
|
||||
void
|
||||
WifiTxVector::SetSigBMode(const WifiMode& mode)
|
||||
{
|
||||
|
||||
@@ -122,6 +122,7 @@ class WifiTxVector
|
||||
* \param ldpc enable or disable LDPC (BCC is used otherwise)
|
||||
* \param bssColor the BSS color
|
||||
* \param length the LENGTH field of the L-SIG
|
||||
* \param triggerResponding the Trigger Responding parameter
|
||||
*/
|
||||
WifiTxVector(WifiMode mode,
|
||||
uint8_t powerLevel,
|
||||
@@ -135,7 +136,8 @@ class WifiTxVector
|
||||
bool stbc = false,
|
||||
bool ldpc = false,
|
||||
uint8_t bssColor = 0,
|
||||
uint16_t length = 0);
|
||||
uint16_t length = 0,
|
||||
bool triggerResponding = false);
|
||||
/**
|
||||
* Copy constructor
|
||||
* \param txVector the TXVECTOR to copy
|
||||
@@ -322,6 +324,16 @@ class WifiTxVector
|
||||
* \return the LENGTH field of the L-SIG
|
||||
*/
|
||||
uint16_t GetLength() const;
|
||||
/**
|
||||
* Return true if the Trigger Responding parameter is set to true, false otherwise.
|
||||
* \return true if the Trigger Responding parameter is set to true, false otherwise
|
||||
*/
|
||||
bool IsTriggerResponding() const;
|
||||
/**
|
||||
* Set the Trigger Responding parameter to the given value
|
||||
* \param triggerResponding the value for the Trigger Responding parameter
|
||||
*/
|
||||
void SetTriggerResponding(bool triggerResponding);
|
||||
/**
|
||||
* The standard disallows certain combinations of WifiMode, number of
|
||||
* spatial streams, and channel widths. This method can be used to
|
||||
@@ -485,6 +497,7 @@ class WifiTxVector
|
||||
bool m_ldpc; /**< LDPC FEC coding if true, BCC otherwise*/
|
||||
uint8_t m_bssColor; /**< BSS color */
|
||||
uint16_t m_length; /**< LENGTH field of the L-SIG */
|
||||
bool m_triggerResponding; /**< The Trigger Responding parameter */
|
||||
|
||||
bool m_modeInitialized; /**< Internal initialization flag */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user