relayd: update to the latest version, fixes some issues found by Coverity
[openwrt/staging/blogic.git] / package / kernel / mac80211 / patches / 309-mac80211-make-local-tx_headroom-a-multiple-of-4.patch
1 From: Felix Fietkau <nbd@openwrt.org>
2 Date: Thu, 30 Jul 2015 14:12:25 +0200
3 Subject: [PATCH] mac80211: make local->tx_headroom a multiple of 4
4
5 This ensures that mac80211 generated management frames and beacons are
6 aligned before being passed to the driver
7
8 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
9 ---
10
11 --- a/net/mac80211/main.c
12 +++ b/net/mac80211/main.c
13 @@ -1031,6 +1031,7 @@ int ieee80211_register_hw(struct ieee802
14 */
15 local->tx_headroom = max_t(unsigned int , local->hw.extra_tx_headroom,
16 IEEE80211_TX_STATUS_HEADROOM);
17 + local->tx_headroom = ALIGN(local->tx_headroom, 4);
18
19 debugfs_hw_add(local);
20