wifi: Fix some more Visual Studio warnings in SupportedRates
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user