imx6: fix redundant PROFILES overrides in image makefile
[librecmc/librecmc.git] / package / kernel / mac80211 / patches / 304-mac80211-fix-fast_tx-header-alignment.patch
1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Thu, 19 May 2016 17:32:13 +0200
3 Subject: [PATCH] mac80211: fix fast_tx header alignment
4
5 The header field is defined as u8[] but also accessed as struct
6 ieee80211_hdr. Enforce an alignment of 2 to prevent unnecessary
7 unaligned accesses, which can be very harmful for performance on many
8 platforms.
9
10 Fixes: e495c24731a2 ("mac80211: extend fast-xmit for more ciphers")
11 Cc: stable@vger.kernel.org
12 Signed-off-by: Felix Fietkau <nbd@nbd.name>
13 ---
14
15 --- a/net/mac80211/sta_info.h
16 +++ b/net/mac80211/sta_info.h
17 @@ -280,7 +280,7 @@ struct ieee80211_fast_tx {
18         u8 sa_offs, da_offs, pn_offs;
19         u8 band;
20         u8 hdr[30 + 2 + IEEE80211_FAST_XMIT_MAX_IV +
21 -              sizeof(rfc1042_header)];
22 +              sizeof(rfc1042_header)] __aligned(2);
23  
24         struct rcu_head rcu_head;
25  };