From a826d8a447e601d3addf17a7d653f151c220f3db Mon Sep 17 00:00:00 2001 From: Stefano Avallone Date: Wed, 31 Mar 2021 11:55:05 +0200 Subject: [PATCH] wifi: WifiHelper creates the PHY before the MAC Besides being more natural, it allows the MAC helper to create a Protection/Ack Manager for every FrameExchangeManager in case of multi-link devices. --- src/wifi/helper/wifi-helper.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wifi/helper/wifi-helper.cc b/src/wifi/helper/wifi-helper.cc index a5b74c323..ba29ad277 100644 --- a/src/wifi/helper/wifi-helper.cc +++ b/src/wifi/helper/wifi-helper.cc @@ -808,11 +808,11 @@ WifiHelper::Install (const WifiPhyHelper &phyHelper, device->SetHeConfiguration (heConfiguration); } Ptr manager = m_stationManager.Create (); - Ptr mac = macHelper.Create (device, m_standard); Ptr phy = phyHelper.Create (node, device); phy->ConfigureStandardAndBand (it->second.phyStandard, it->second.phyBand); - device->SetMac (mac); device->SetPhy (phy); + Ptr mac = macHelper.Create (device, m_standard); + device->SetMac (mac); device->SetRemoteStationManager (manager); node->AddDevice (device); if ((it->second.phyStandard >= WIFI_PHY_STANDARD_80211ax) && (m_obssPdAlgorithm.IsTypeIdSet ()))