aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-07-31 19:49:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-07-31 19:49:09 +0000
commita44e6f8d3828bafb4ce4dcf13877ebc12ede23db (patch)
tree338d89333abbdb5091427355c7bd446df88b5150 /package/kernel
parent35a3754c5f93a84709f4bfecaadfcfb676cd3f72 (diff)
downloadmaster-187ad058-a44e6f8d3828bafb4ce4dcf13877ebc12ede23db.tar.gz
master-187ad058-a44e6f8d3828bafb4ce4dcf13877ebc12ede23db.tar.bz2
master-187ad058-a44e6f8d3828bafb4ce4dcf13877ebc12ede23db.zip
mac80211: fix data alignment of management frames / beacons
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46532 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel')
-rw-r--r--package/kernel/mac80211/patches/309-mac80211-make-local-tx_headroom-a-multiple-of-4.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/309-mac80211-make-local-tx_headroom-a-multiple-of-4.patch b/package/kernel/mac80211/patches/309-mac80211-make-local-tx_headroom-a-multiple-of-4.patch
new file mode 100644
index 0000000000..e8e96173f4
--- /dev/null
+++ b/package/kernel/mac80211/patches/309-mac80211-make-local-tx_headroom-a-multiple-of-4.patch
@@ -0,0 +1,20 @@
+From: Felix Fietkau <nbd@openwrt.org>
+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 <nbd@openwrt.org>
+---
+
+--- 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);
+