wifi: Indicate ongoing reception is stopped to interference helper when PHY is reset
This commit is contained in:
committed by
Sébastien Deronne
parent
c606aa4cf3
commit
76cff6af65
@@ -413,8 +413,6 @@ WifiPhy::DoDispose()
|
||||
{
|
||||
NS_LOG_FUNCTION(this);
|
||||
|
||||
Reset();
|
||||
|
||||
m_device = nullptr;
|
||||
m_mobility = nullptr;
|
||||
m_frameCaptureModel = nullptr;
|
||||
@@ -429,6 +427,9 @@ WifiPhy::DoDispose()
|
||||
m_random = nullptr;
|
||||
m_state = nullptr;
|
||||
|
||||
Reset();
|
||||
|
||||
// this should be done after calling the Reset function
|
||||
for (auto& phyEntity : m_phyEntities)
|
||||
{
|
||||
phyEntity.second = nullptr;
|
||||
@@ -1879,6 +1880,10 @@ WifiPhy::Reset()
|
||||
{
|
||||
NS_LOG_FUNCTION(this);
|
||||
m_currentPreambleEvents.clear();
|
||||
if (m_currentEvent && m_interference)
|
||||
{
|
||||
m_interference->NotifyRxEnd(Simulator::Now(), GetCurrentFrequencyRange());
|
||||
}
|
||||
m_currentEvent = nullptr;
|
||||
for (auto& phyEntity : m_phyEntities)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user