equal
deleted
inserted
replaced
170 Ptr<PropagationDelayModel> delay = m_propagationDelay.Create<PropagationDelayModel> (); |
170 Ptr<PropagationDelayModel> delay = m_propagationDelay.Create<PropagationDelayModel> (); |
171 channel->SetPropagationDelayModel (delay); |
171 channel->SetPropagationDelayModel (delay); |
172 return channel; |
172 return channel; |
173 } |
173 } |
174 |
174 |
|
175 int64_t |
|
176 YansWifiChannelHelper::AssignStreams (Ptr<YansWifiChannel> c, int64_t stream) |
|
177 { |
|
178 return c->AssignStreams (stream); |
|
179 } |
|
180 |
175 YansWifiPhyHelper::YansWifiPhyHelper () |
181 YansWifiPhyHelper::YansWifiPhyHelper () |
176 : m_channel (0), |
182 : m_channel (0), |
177 m_pcapDlt (PcapHelper::DLT_IEEE802_11) |
183 m_pcapDlt (PcapHelper::DLT_IEEE802_11) |
178 { |
184 { |
179 m_phy.SetTypeId ("ns3::YansWifiPhy"); |
185 m_phy.SetTypeId ("ns3::YansWifiPhy"); |
533 oss.str (""); |
539 oss.str (""); |
534 oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::WifiNetDevice/Phy/State/Tx"; |
540 oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::WifiNetDevice/Phy/State/Tx"; |
535 Config::Connect (oss.str (), MakeBoundCallback (&AsciiPhyTransmitSinkWithContext, stream)); |
541 Config::Connect (oss.str (), MakeBoundCallback (&AsciiPhyTransmitSinkWithContext, stream)); |
536 } |
542 } |
537 |
543 |
538 int64_t |
|
539 YansWifiPhyHelper::AssignStreams (int64_t stream) |
|
540 { |
|
541 NS_LOG_FUNCTION (this << stream); |
|
542 return m_channel->AssignStreams (stream); |
|
543 } |
|
544 |
|
545 } // namespace ns3 |
544 } // namespace ns3 |