wifi: Do not set existing factory to TypeId 0

Prevents assert due to UID 0 during logging
This commit is contained in:
Gabriel Ferreira
2024-09-11 10:34:44 +02:00
parent ef72c1248e
commit 9f3232ce6e

View File

@@ -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