diff --git a/src/wifi/model/capability-information.cc b/src/wifi/model/capability-information.cc index 16e5858bc..4f9a25f17 100644 --- a/src/wifi/model/capability-information.cc +++ b/src/wifi/model/capability-information.cc @@ -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) { diff --git a/src/wifi/model/capability-information.h b/src/wifi/model/capability-information.h index c7bf86083..7f45151f0 100644 --- a/src/wifi/model/capability-information.h +++ b/src/wifi/model/capability-information.h @@ -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.