Skip to content
  • Johannes Berg's avatar
    mac80211: fix radiotap header generation · 6a86b9c7
    Johannes Berg authored
    In
    
      commit 601ae7f2
    
    
      Author: Bruno Randolf <br1@einfach.org>
      Date:   Thu May 8 19:22:43 2008 +0200
    
          mac80211: make rx radiotap header more flexible
    
    code was added that tried to align the radiotap header
    position in memory based on the radiotap header length.
    Quite obviously, that is completely useless.
    
    Instead of trying to do that, use unaligned accesses
    to generate the radiotap header. To properly do that,
    we also need to mark struct ieee80211_radiotap_header
    packed, but that is fine since it's already packed
    (and it should be marked packed anyway since its a
    wire format).
    
    Cc: Bruno Randolf <br1@einfach.org>
    Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    6a86b9c7