From 9f3232ce6ea9e2220185c2ca0b69554c395be2f3 Mon Sep 17 00:00:00 2001 From: Gabriel Ferreira Date: Wed, 11 Sep 2024 10:34:44 +0200 Subject: [PATCH] wifi: Do not set existing factory to TypeId 0 Prevents assert due to UID 0 during logging --- src/wifi/helper/wifi-helper.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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