Hi Monika,
Yes, it has been a while and I do not remember all the little details. As far as I can see the wifi-phy-state-helper.cc class uses listeners to keep track of the yans-wifi-phy.cc packet drops.
I think I used PhyRxOk, PhyStateRxOk, MacRxOk trace sources and their respective Tx sources to calculate the packet drops. Because I had a perfect channel. Drops had to be in the collisions. And I remember the values from Phy, PhyState and Mac usually tally, except for cases like packet aggregation.
You can actually tap into the Phy can see the packet transmission times and see whether they are colliding. Interference-helper class should also be helpful (I suppose).
Hope it helps. Feel free to get back to me if you need further info.
Best regards,
Sampath