Menu

#1 Mac80211 packet bit length calculated correctly?

v1.0_(example)
closed-fixed
None
5
2009-10-06
2009-07-29
Galactix
No

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...

Discussion

  • Karl Wessel

    Karl Wessel - 2009-08-25

    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!

     
  • Karl Wessel

    Karl Wessel - 2009-08-25
    • assigned_to: nobody --> karl_wessel
     
  • Karl Wessel

    Karl Wessel - 2009-10-06

    removed PHY_HEADER_LENGTH from MacPkt80211 and instead added headerLength parameter to BasePhyLayer

     
  • Karl Wessel

    Karl Wessel - 2009-10-06
    • status: open --> closed-fixed
     

Log in to post a comment.