src/wifi/model/yans-wifi-channel.cc
changeset 8981 7e1c95c4d1a7
parent 7385 10beb0e53130
child 8985 7752dc4ce7e9
--- a/src/wifi/model/yans-wifi-channel.cc	Tue Aug 14 13:12:00 2012 -0700
+++ b/src/wifi/model/yans-wifi-channel.cc	Tue Aug 14 13:52:17 2012 -0700
@@ -138,4 +138,16 @@
   m_phyList.push_back (phy);
 }
 
+int64_t
+YansWifiChannel::AssignStreams (int64_t stream)
+{
+  int64_t currentStream = stream;
+  for (PhyList::const_iterator i = m_phyList.begin (); i != m_phyList.end (); i++)
+    {
+      Ptr<YansWifiPhy> yans = (*i);
+      currentStream += yans->AssignStreams (currentStream);
+    }
+  return (currentStream - stream);
+}
+
 } // namespace ns3