wifi: Reduce precision to fix infinite loop when Ideal rate manager as used with Yans error rate model

This commit is contained in:
Sébastien Deronne
2020-07-29 19:55:35 +02:00
committed by Sebastien Deronne
parent 7969df7089
commit 46dbdf4911

View File

@@ -42,7 +42,7 @@ ErrorRateModel::CalculateSnr (WifiTxVector txVector, double ber) const
double low, high, precision;
low = 1e-25;
high = 1e25;
precision = 1e-12;
precision = 2e-12;
while (high - low > precision)
{
NS_ASSERT (high >= low);