wifi: Add Capability Information EHT subfields

This commit is contained in:
Sharan Naribole
2024-09-03 08:20:19 +02:00
committed by Stefano Avallone
parent def70cd895
commit 04784deddb
2 changed files with 28 additions and 0 deletions

View File

@@ -54,6 +54,15 @@ CapabilityInformation::SetCfPollable()
Set(2);
}
void
CapabilityInformation::SetCriticalUpdate(bool flag)
{
if (flag)
{
Set(6);
}
}
bool
CapabilityInformation::IsEss() const
{
@@ -84,6 +93,12 @@ CapabilityInformation::IsCfPollable() const
return Is(2);
}
bool
CapabilityInformation::IsCriticalUpdate() const
{
return Is(6);
}
void
CapabilityInformation::Set(uint8_t n)
{

View File

@@ -56,6 +56,12 @@ class CapabilityInformation
*/
void SetCfPollable();
/**
* Set Critical Update flag (see IEEE 802.11be D5.0 9.4.1.4)
* @param flag critical update bit
*/
void SetCriticalUpdate(bool flag);
/**
* Check if the Extended Service Set (ESS) bit
* in the capability information field is set to 1.
@@ -97,6 +103,13 @@ class CapabilityInformation
*/
bool IsCfPollable() const;
/**
* Check if Critical Update bit is set to 1
*
* @return true if set to 1, false otherwise
*/
bool IsCriticalUpdate() const;
/**
* Return the serialized size of capability
* information.