source: trunk/package/mac80211/patches/300-arm_alignment_fix.patch @ 13114

Last change on this file since 13114 was 13114, checked in by nbd, 8 years ago

upgrade compat-wireless to 2008-11-03

File size: 624 bytes
  • include/net/mac80211.h

    On ARM alignment is done slightly different from other architectures.
    struct ieee80211_tx_rate is aligned to word size, even though it only has 3
    single-byte members, which triggers the BUILD_BUG_ON in
    ieee80211_tx_info_clear_status
    
    This patch marks the struct ieee80211_tx_rate as packed, so that ARM
    behaves like the other architectures.
    
    Signed-off-by: Felix Fietkau <nbd@openwrt.org>
    
    a b struct ieee80211_tx_rate { 
    299299        s8 idx; 
    300300        u8 count; 
    301301        u8 flags; 
    302 }; 
     302} __attribute__((packed)); 
    303303 
    304304/** 
    305305 * struct ieee80211_tx_info - skb transmit information 
Note: See TracBrowser for help on using the repository browser.