diff -r 740a983ed25b -r 97052ab05772 src/wifi/examples/wifi-phy-test.cc --- a/src/wifi/examples/wifi-phy-test.cc Wed May 15 15:47:58 2013 -0400 +++ b/src/wifi/examples/wifi-phy-test.cc Wed May 15 16:26:46 2013 -0400 @@ -187,14 +187,16 @@ CollisionExperiment::Receive (Ptr p, double snr, WifiMode mode, enum WifiPreamble preamble) { FlowIdTag tag; - p->FindFirstMatchingByteTag (tag); - if (tag.GetFlowId () == m_flowIdA) + if (p->FindFirstMatchingByteTag (tag)) { - m_output.receivedA++; - } - else if (tag.GetFlowId () == m_flowIdB) - { - m_output.receivedB++; + if (tag.GetFlowId () == m_flowIdA) + { + m_output.receivedA++; + } + else if (tag.GetFlowId () == m_flowIdB) + { + m_output.receivedB++; + } } }