View | Details | Raw Unified | Return to bug 2771
Collapse All | Expand All

(-)a/src/wifi/model/ideal-wifi-manager.cc (-3 / +3 lines)
 Lines 321-327    Link Here 
321
                            maxThreshold << " last snr observed " <<
321
                            maxThreshold << " last snr observed " <<
322
                            station->m_lastSnrObserved << " cached " <<
322
                            station->m_lastSnrObserved << " cached " <<
323
                            station->m_lastSnrCached);
323
                            station->m_lastSnrCached);
324
              if (threshold > maxThreshold && threshold < station->m_lastSnrObserved)
324
              if (threshold >= maxThreshold && threshold < station->m_lastSnrObserved)
325
                {
325
                {
326
                  NS_LOG_DEBUG ("Candidate mode = " << mode.GetUniqueName () <<
326
                  NS_LOG_DEBUG ("Candidate mode = " << mode.GetUniqueName () <<
327
                                " threshold " << threshold  <<
327
                                " threshold " << threshold  <<
 Lines 347-353    Link Here 
347
                            " threshold " << threshold  <<
347
                            " threshold " << threshold  <<
348
                            " last snr observed " <<
348
                            " last snr observed " <<
349
                            station->m_lastSnrObserved);
349
                            station->m_lastSnrObserved);
350
              if (threshold > maxThreshold && threshold < station->m_lastSnrObserved)
350
              if (threshold >= maxThreshold && threshold < station->m_lastSnrObserved)
351
                {
351
                {
352
                  NS_LOG_DEBUG ("Candidate mode = " << mode.GetUniqueName () <<
352
                  NS_LOG_DEBUG ("Candidate mode = " << mode.GetUniqueName () <<
353
                                " threshold " << threshold  <<
353
                                " threshold " << threshold  <<
 Lines 396-402    Link Here 
396
      txVector.SetNss (nss);
396
      txVector.SetNss (nss);
397
      txVector.SetChannelWidth (GetChannelWidthForMode (mode));
397
      txVector.SetChannelWidth (GetChannelWidthForMode (mode));
398
      double threshold = GetSnrThreshold (txVector);
398
      double threshold = GetSnrThreshold (txVector);
399
      if (threshold > maxThreshold && threshold < station->m_lastSnrObserved)
399
      if (threshold >= maxThreshold && threshold < station->m_lastSnrObserved)
400
        {
400
        {
401
          maxThreshold = threshold;
401
          maxThreshold = threshold;
402
          maxMode = mode;
402
          maxMode = mode;

Return to bug 2771