diff --git a/src/wifi/model/rrpaa-wifi-manager.cc b/src/wifi/model/rrpaa-wifi-manager.cc index bf95e894d..68dad75cd 100644 --- a/src/wifi/model/rrpaa-wifi-manager.cc +++ b/src/wifi/model/rrpaa-wifi-manager.cc @@ -208,6 +208,7 @@ Thresholds RrpaaWifiManager::GetThresholds (RrpaaWifiRemoteStation *station, WifiMode mode) const { NS_LOG_FUNCTION (this << station << mode); + struct Thresholds threshold; for (RrpaaThresholdsTable::const_iterator i = station->m_thresholds.begin (); i != station->m_thresholds.end (); i++) { if (mode == i->second) @@ -215,7 +216,8 @@ RrpaaWifiManager::GetThresholds (RrpaaWifiRemoteStation *station, WifiMode mode) return i->first; } } - NS_ASSERT (false); + NS_ABORT_MSG ("No thresholds for mode " << mode << " found"); + return threshold; // Silence compiler warning } WifiRemoteStation *