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 ()))