wifi: Fix typo
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user