wifi: Small change in get HT/VHT capabilities/operation

This commit is contained in:
Sébastien Deronne
2017-01-02 16:57:20 +01:00
parent 24d8f6ddea
commit c03b956014
2 changed files with 4 additions and 4 deletions

View File

@@ -504,9 +504,9 @@ ApWifiMac::GetHtOperation (void) const
{
NS_LOG_FUNCTION (this);
HtOperation operation;
operation.SetHtSupported (1);
if (m_htSupported)
{
operation.SetHtSupported (1);
operation.SetNonGfHtStasPresent (IsNonGfHtStasPresent ());
if (m_nonHtStations.empty ())
{
@@ -525,9 +525,9 @@ ApWifiMac::GetVhtOperation (void) const
{
NS_LOG_FUNCTION (this);
VhtOperation operation;
operation.SetVhtSupported (1);
if (m_vhtSupported)
{
operation.SetVhtSupported (1);
uint8_t channelWidth = GetVhtOperationalChannelWidth ();
if (channelWidth == 160)
{

View File

@@ -141,9 +141,9 @@ RegularWifiMac::GetHtCapabilities (void) const
{
NS_LOG_FUNCTION (this);
HtCapabilities capabilities;
capabilities.SetHtSupported (1);
if (m_htSupported)
{
capabilities.SetHtSupported (1);
capabilities.SetLdpc (m_phy->GetLdpc ());
capabilities.SetSupportedChannelWidth (m_phy->GetChannelWidth () == 40);
capabilities.SetShortGuardInterval20 (m_phy->GetGuardInterval ());
@@ -181,9 +181,9 @@ RegularWifiMac::GetVhtCapabilities (void) const
{
NS_LOG_FUNCTION (this);
VhtCapabilities capabilities;
capabilities.SetVhtSupported (1);
if (m_vhtSupported)
{
capabilities.SetVhtSupported (1);
if (m_phy->GetChannelWidth () == 160)
{
capabilities.SetSupportedChannelWidthSet (1);