wifi: Fix typo

This commit is contained in:
Sébastien Deronne
2021-09-22 19:21:29 +02:00
parent 66314e991d
commit ccf15ffa4a
2 changed files with 8 additions and 8 deletions

View File

@@ -61,13 +61,13 @@ SpectrumWifiPhyHelper::Create (Ptr<Node> node, Ptr<NetDevice> device) const
phy->SetErrorRateModel (error);
if (m_frameCaptureModel.IsTypeIdSet ())
{
Ptr<FrameCaptureModel> capture = m_frameCaptureModel.Create<FrameCaptureModel> ();
phy->SetFrameCaptureModel (capture);
auto frameCapture = m_frameCaptureModel.Create<FrameCaptureModel> ();
phy->SetFrameCaptureModel (frameCapture);
}
if (m_preambleDetectionModel.IsTypeIdSet ())
{
Ptr<PreambleDetectionModel> capture = m_preambleDetectionModel.Create<PreambleDetectionModel> ();
phy->SetPreambleDetectionModel (capture);
auto preambleDetection = m_preambleDetectionModel.Create<PreambleDetectionModel> ();
phy->SetPreambleDetectionModel (preambleDetection);
}
phy->SetChannel (m_channel);
phy->SetDevice (device);

View File

@@ -151,13 +151,13 @@ YansWifiPhyHelper::Create (Ptr<Node> node, Ptr<NetDevice> device) const
phy->SetErrorRateModel (error);
if (m_frameCaptureModel.IsTypeIdSet ())
{
Ptr<FrameCaptureModel> capture = m_frameCaptureModel.Create<FrameCaptureModel> ();
phy->SetFrameCaptureModel (capture);
auto frameCapture = m_frameCaptureModel.Create<FrameCaptureModel> ();
phy->SetFrameCaptureModel (frameCapture);
}
if (m_preambleDetectionModel.IsTypeIdSet ())
{
Ptr<PreambleDetectionModel> capture = m_preambleDetectionModel.Create<PreambleDetectionModel> ();
phy->SetPreambleDetectionModel (capture);
auto preambleDetection = m_preambleDetectionModel.Create<PreambleDetectionModel> ();
phy->SetPreambleDetectionModel (preambleDetection);
}
phy->SetChannel (m_channel);
phy->SetDevice (device);