From 3313fbbb97a89d4efd3be2f039be0560812ca72c Mon Sep 17 00:00:00 2001 From: Stefano Avallone Date: Mon, 13 Jun 2022 19:22:58 +0200 Subject: [PATCH] wifi: Notify MAC when channel switching is completed --- src/wifi/model/frame-exchange-manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wifi/model/frame-exchange-manager.cc b/src/wifi/model/frame-exchange-manager.cc index ed972f2bd..20145eb64 100644 --- a/src/wifi/model/frame-exchange-manager.cc +++ b/src/wifi/model/frame-exchange-manager.cc @@ -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