wifi: Add HeConfiguration methods to set/get the BSS color

This commit is contained in:
Stefano Avallone
2021-02-07 12:14:45 +01:00
committed by Stefano Avallone
parent 8cd99af142
commit 2b0d4ef3de
2 changed files with 23 additions and 1 deletions

View File

@@ -49,7 +49,8 @@ HeConfiguration::GetTypeId (void)
.AddAttribute ("BssColor",
"The BSS color",
UintegerValue (0),
MakeUintegerAccessor (&HeConfiguration::m_bssColor),
MakeUintegerAccessor (&HeConfiguration::GetBssColor,
&HeConfiguration::SetBssColor),
MakeUintegerChecker<uint8_t> ())
.AddAttribute ("MpduBufferSize",
"The MPDU buffer size for receiving A-MPDUs",
@@ -75,6 +76,19 @@ HeConfiguration::GetGuardInterval (void) const
return m_guardInterval;
}
void
HeConfiguration::SetBssColor (uint8_t bssColor)
{
NS_LOG_FUNCTION (this << +bssColor);
m_bssColor = bssColor;
}
uint8_t
HeConfiguration::GetBssColor (void) const
{
return m_bssColor;
}
void
HeConfiguration::SetMpduBufferSize (uint16_t size)
{

View File

@@ -52,6 +52,14 @@ public:
* \return the supported HE guard interval
*/
Time GetGuardInterval (void) const;
/**
* \param bssColor the BSS color
*/
void SetBssColor (uint8_t bssColor);
/**
* \return the BSS color
*/
uint8_t GetBssColor (void) const;
/**
* \param size the MPDU buffer size to receive A-MPDUs
*/