From fe550dc8751ca293e9bc0563c54ec76aaddd01cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Mon, 11 Dec 2023 20:07:57 +0100 Subject: [PATCH] wifi: Add checks in WifiRemoteStationManager::Lookup function --- src/wifi/model/wifi-remote-station-manager.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wifi/model/wifi-remote-station-manager.cc b/src/wifi/model/wifi-remote-station-manager.cc index 9ec2e9540..1139658bf 100644 --- a/src/wifi/model/wifi-remote-station-manager.cc +++ b/src/wifi/model/wifi-remote-station-manager.cc @@ -1453,6 +1453,8 @@ WifiRemoteStation* WifiRemoteStationManager::Lookup(Mac48Address address) const { NS_LOG_FUNCTION(this << address); + NS_ASSERT(!address.IsGroup()); + NS_ASSERT(address != m_wifiMac->GetAddress()); auto stationIt = m_stations.find(address); if (stationIt != m_stations.end())