mac80211: clarify alignment docs, fix up alignment
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 6 Jan 2009 23:26:10 +0000 (00:26 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Jan 2009 20:59:54 +0000 (15:59 -0500)
commitd1c3a37ceeb1a5ea02991a0476355f1a1d3b3e83
tree9ddce7f3169bd77adbeba2d4627ec46ecde9a33e
parent2bf30fabadbdcb535b057afc92aba015884847dc
mac80211: clarify alignment docs, fix up alignment

Not all drivers are capable of passing properly aligned frames,
in particular with mesh networking no hardware will support
completely aligning it correctly.

This patch adds code to align the data payload to a 4-byte
boundary in memory for those platforms that require this, or
when CONFIG_MAC80211_DEBUG_PACKET_ALIGNMENT is set.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Documentation/DocBook/mac80211.tmpl
net/mac80211/rx.c