wifi: Notify MAC when channel switching is completed

This commit is contained in:
Stefano Avallone
2022-06-13 19:22:58 +02:00
committed by Stefano Avallone
parent a5adf75663
commit 3313fbbb97

View File

@@ -945,7 +945,7 @@ void
FrameExchangeManager::NotifySwitchingStartNow (Time duration)
{
NS_LOG_DEBUG ("Switching channel. Cancelling MAC pending events");
m_mac->NotifyChannelSwitching ();
Simulator::Schedule (duration, &WifiMac::NotifyChannelSwitching, m_mac);
if (m_txTimer.IsRunning ())
{
// we were transmitting something before channel switching. Since we will