diff --git a/src/wifi/helper/wifi-helper.cc b/src/wifi/helper/wifi-helper.cc index 32f18f2fb..a01a7dca5 100644 --- a/src/wifi/helper/wifi-helper.cc +++ b/src/wifi/helper/wifi-helper.cc @@ -166,10 +166,8 @@ WifiPhyHelper::Set(uint8_t linkId, std::string name, const AttributeValue& v) void WifiPhyHelper::DisablePreambleDetectionModel() { - for (auto& preambleDetectionModel : m_preambleDetectionModel) - { - preambleDetectionModel.SetTypeId(TypeId()); - } + m_preambleDetectionModel.clear(); + m_preambleDetectionModel.resize(m_phys.size()); } void