Index: src/wifi/model/erp-information.cc |
=================================================================== |
--- a/src/wifi/model/erp-information.cc |
+++ b/src/wifi/model/erp-information.cc |
@@ -79,14 +79,14 @@ |
uint8_t |
ErpInformation::GetInformationFieldSize () const |
{ |
- NS_ASSERT (m_erpSupported > 0); |
+ NS_ASSERT (m_erpSupported); |
return 1; |
} |
Buffer::Iterator |
ErpInformation::Serialize (Buffer::Iterator i) const |
{ |
- if (m_erpSupported < 1) |
+ if (!m_erpSupported) |
{ |
return i; |
} |
@@ -96,7 +96,7 @@ |
uint16_t |
ErpInformation::GetSerializedSize () const |
{ |
- if (m_erpSupported < 1) |
+ if (!m_erpSupported) |
{ |
return 0; |
} |
@@ -106,7 +106,7 @@ |
void |
ErpInformation::SerializeInformationField (Buffer::Iterator start) const |
{ |
- if (m_erpSupported == 1) |
+ if (m_erpSupported) |
{ |
start.WriteU8 (m_erpInformation); |
} |
S. Deronne
2018/02/18 14:52:55
OK to push those changes
|