diff --git a/src/wifi/model/wifi-remote-station-manager.cc b/src/wifi/model/wifi-remote-station-manager.cc index 3c680c69e..bc89e15d8 100644 --- a/src/wifi/model/wifi-remote-station-manager.cc +++ b/src/wifi/model/wifi-remote-station-manager.cc @@ -1341,9 +1341,7 @@ WifiRemoteStationManager::GetInfo(Mac48Address address) std::optional WifiRemoteStationManager::GetMostRecentRssi(Mac48Address address) const { - auto stationIt = m_stations.find(address); - NS_ASSERT_MSG(stationIt != m_stations.end(), "Address: " << address << " not found"); - auto station = stationIt->second; + auto station = Lookup(address); auto rssi = station->m_rssiAndUpdateTimePair.first; auto ts = station->m_rssiAndUpdateTimePair.second; if (ts.IsStrictlyPositive())