Mac80211.cc calculates the bitlength of the Mac80211pkt as MAC80211_HEADER_LENGTH + PHY_HEADER_LENGTH. This puzzles me, as the first is a value in bits (272 in Const80211.h) and the PHY_HEADER_LENGTH (192 by default) is a value in microseconds...
The header is transmitted at 1Mbit, so one bit takes one us, so I can understand why we can add \mu s to bits. But why is the PHY header length part of the Mac80211pkt? Is this because preamble and PLCP are modeled in the Mac80211pkt in order to calculate a duration in seconds for the AirFrame?
Srictly speaking, this gives an erroneous value of the bitlength of a Mac80211pkt...
You are right, PHY_HEADER_LENGTH should be used as bit length of the AirFrame instead of added to the MacPkt length. I will fix that. Thank you!
removed PHY_HEADER_LENGTH from MacPkt80211 and instead added headerLength parameter to BasePhyLayer