wifi: Small change in get HT/VHT capabilities/operation
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user