spectrum: Fix assert hit when PHYs attached to a single model spectrum channel have switched to another channel

This commit is contained in:
Sébastien Deronne
2024-04-15 13:11:47 +02:00
parent 3a0a2d1644
commit 0f6cb9657f

View File

@@ -90,6 +90,11 @@ SingleModelSpectrumChannel::AddRx(Ptr<SpectrumPhy> phy)
{
m_phyList.push_back(phy);
}
else
{
// PHY has switched its channel, reset m_spectrumModel
m_spectrumModel = nullptr;
}
}
void