[PATCH] Corrected SSB Config
[openwrt.git] / package / mac80211 / patches / 300-arm_alignment_fix.patch
1 On ARM alignment is done slightly different from other architectures.
2 struct ieee80211_tx_rate is aligned to word size, even though it only has 3
3 single-byte members, which triggers the BUILD_BUG_ON in
4 ieee80211_tx_info_clear_status
5
6 This patch marks the struct ieee80211_tx_rate as packed, so that ARM
7 behaves like the other architectures.
8
9 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
10
11 --- a/include/net/mac80211.h
12 +++ b/include/net/mac80211.h
13 @@ -299,7 +299,7 @@ struct ieee80211_tx_rate {
14         s8 idx;
15         u8 count;
16         u8 flags;
17 -};
18 +} __attribute__((packed));
19  
20  /**
21   * struct ieee80211_tx_info - skb transmit information