Fix copy-paste errors in ap-wifi-mac.cc and in sta-wifi-mac.cc

This commit is contained in:
Sébastien Deronne
2015-11-02 18:43:56 +01:00
parent 355b210734
commit ef605df50b
2 changed files with 4 additions and 4 deletions

View File

@@ -362,9 +362,9 @@ ApWifiMac::GetHtCapabilities (void) const
{
WifiMode mcs = m_phy->GetMcs (i);
capabilities.SetRxMcsBitmask (mcs.GetMcsValue ());
if (mcs.GetDataRate (m_phy->GetGuardInterval (), m_phy->GetGuardInterval (), 1) > maxSupportedRate)
if (mcs.GetDataRate (m_phy->GetChannelWidth (), m_phy->GetGuardInterval (), 1) > maxSupportedRate)
{
maxSupportedRate = mcs.GetDataRate (m_phy->GetGuardInterval (), m_phy->GetGuardInterval (), 1);
maxSupportedRate = mcs.GetDataRate (m_phy->GetChannelWidth (), m_phy->GetGuardInterval (), 1);
}
}
capabilities.SetRxHighestSupportedDataRate (maxSupportedRate / 1e6); //in Mbit/s

View File

@@ -686,9 +686,9 @@ StaWifiMac::GetHtCapabilities (void) const
{
WifiMode mcs = m_phy->GetMcs (i);
capabilities.SetRxMcsBitmask (mcs.GetMcsValue ());
if (mcs.GetDataRate (m_phy->GetGuardInterval (), m_phy->GetGuardInterval (), 1) > maxSupportedRate)
if (mcs.GetDataRate (m_phy->GetChannelWidth (), m_phy->GetGuardInterval (), 1) > maxSupportedRate)
{
maxSupportedRate = mcs.GetDataRate (m_phy->GetGuardInterval (), m_phy->GetGuardInterval (), 1);
maxSupportedRate = mcs.GetDataRate (m_phy->GetChannelWidth (), m_phy->GetGuardInterval (), 1);
}
}
capabilities.SetRxHighestSupportedDataRate (maxSupportedRate / 1e6); //in Mbit/s