Author: nbd Date: 2015-07-31 21:49:09 +0200 (Fri, 31 Jul 2015) New Revision: 46532
Added: trunk/package/kernel/mac80211/patches/309-mac80211-make-local-tx_headroom-a-multiple-of-4.patch Log: mac80211: fix data alignment of management frames / beacons Signed-off-by: Felix Fietkau <[email protected]> Added: trunk/package/kernel/mac80211/patches/309-mac80211-make-local-tx_headroom-a-multiple-of-4.patch =================================================================== --- trunk/package/kernel/mac80211/patches/309-mac80211-make-local-tx_headroom-a-multiple-of-4.patch (rev 0) +++ trunk/package/kernel/mac80211/patches/309-mac80211-make-local-tx_headroom-a-multiple-of-4.patch 2015-07-31 19:49:09 UTC (rev 46532) @@ -0,0 +1,20 @@ +From: Felix Fietkau <[email protected]> +Date: Thu, 30 Jul 2015 14:12:25 +0200 +Subject: [PATCH] mac80211: make local->tx_headroom a multiple of 4 + +This ensures that mac80211 generated management frames and beacons are +aligned before being passed to the driver + +Signed-off-by: Felix Fietkau <[email protected]> +--- + +--- a/net/mac80211/main.c ++++ b/net/mac80211/main.c +@@ -1031,6 +1031,7 @@ int ieee80211_register_hw(struct ieee802 + */ + local->tx_headroom = max_t(unsigned int , local->hw.extra_tx_headroom, + IEEE80211_TX_STATUS_HEADROOM); ++ local->tx_headroom = ALIGN(local->tx_headroom, 4); + + debugfs_hw_add(local); + _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
