wifi: Use uint8_t for channel width in Ideal wifi manager

This commit is contained in:
Sébastien Deronne
2018-03-30 10:22:38 +02:00
parent 7660d90b21
commit 38ccd3f45e

View File

@@ -123,7 +123,7 @@ IdealWifiManager::DoInitialize ()
nModes = GetPhy ()->GetNMcs ();
for (uint8_t i = 0; i < nModes; i++)
{
for (uint16_t j = 20; j <= GetPhy ()->GetChannelWidth (); j *= 2)
for (uint8_t j = 20; j <= GetPhy ()->GetChannelWidth (); j *= 2)
{
txVector.SetChannelWidth (j);
mode = GetPhy ()->GetMcs (i);
@@ -166,6 +166,10 @@ IdealWifiManager::DoInitialize ()
AddSnrThreshold (txVector, GetPhy ()->CalculateSnr (txVector, m_ber));
}
}
if (j == 160)
{
break;
}
}
}
}