diff --git a/src/wifi/model/supported-rates.cc b/src/wifi/model/supported-rates.cc index ed2560540..da5b5e0ea 100644 --- a/src/wifi/model/supported-rates.cc +++ b/src/wifi/model/supported-rates.cc @@ -71,7 +71,7 @@ SupportedRates::AddSupportedRate (uint64_t bs) } void -SupportedRates::SetBasicRate (uint32_t bs) +SupportedRates::SetBasicRate (uint64_t bs) { NS_LOG_FUNCTION (this << bs); NS_ASSERT_MSG (IsBssMembershipSelectorRate (bs) == false, "Invalid rate"); @@ -94,7 +94,7 @@ SupportedRates::SetBasicRate (uint32_t bs) } void -SupportedRates::AddBssMembershipSelectorRate (uint32_t bs) +SupportedRates::AddBssMembershipSelectorRate (uint64_t bs) { NS_LOG_FUNCTION (this << bs); if ((bs != BSS_MEMBERSHIP_SELECTOR_HT_PHY) && (bs != BSS_MEMBERSHIP_SELECTOR_VHT_PHY) && (bs != BSS_MEMBERSHIP_SELECTOR_HE_PHY)) @@ -146,7 +146,7 @@ SupportedRates::IsSupportedRate (uint64_t bs) const } bool -SupportedRates::IsBssMembershipSelectorRate (uint32_t bs) const +SupportedRates::IsBssMembershipSelectorRate (uint64_t bs) const { NS_LOG_FUNCTION (this << bs); if ((bs & 0x7f) == BSS_MEMBERSHIP_SELECTOR_HT_PHY diff --git a/src/wifi/model/supported-rates.h b/src/wifi/model/supported-rates.h index 3a5b73e12..9e1c5d790 100644 --- a/src/wifi/model/supported-rates.h +++ b/src/wifi/model/supported-rates.h @@ -159,14 +159,14 @@ public: * * \param bs the rate to be set */ - void SetBasicRate (uint32_t bs); + void SetBasicRate (uint64_t bs); /** * Add a special value to the supported rate set, corresponding to * a BSS membership selector * * \param bs the special membership selector value (not a valid rate) */ - void AddBssMembershipSelectorRate (uint32_t bs); + void AddBssMembershipSelectorRate (uint64_t bs); /** * Check if the given rate is supported. The rate is encoded as it is * serialized to the Supported Rates Information Element (i.e. as a @@ -196,7 +196,7 @@ public: * * \return true if the rate is a BSS membership selector, false otherwise */ - bool IsBssMembershipSelectorRate (uint32_t bs) const; + bool IsBssMembershipSelectorRate (uint64_t bs) const; /** * Return the number of supported rates. *