Skip to contentSkip to conversation

mac80211: clarify alignment docs, fix up alignment

PATCH New Johannes Berg 1 participant 1 message Jan 6, 2009

Subsystems (2)
lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 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.

---
 Documentation/DocBook/mac80211.tmpl |    4 -
 net/mac80211/rx.c                   |  110 +++++++++++++++++++++++++-----------
 2 files changed, 79 insertions(+), 35 deletions(-)
Documentation/DocBook/mac80211.tmpl +2 -2
@@ -164,8 +164,8 @@ usage should require reading the full do
 !Pinclude/net/mac80211.h Frame format
       </sect1>
       <sect1>
-        <title>Alignment issues</title>
-        <para>TBD</para>
+        <title>Packet alignment</title>
+!Pnet/mac80211/rx.c Packet alignment
       </sect1>
       <sect1>
         <title>Calling into mac80211 from interrupts</title>
net/mac80211/rx.c +77 -33

154 lines not on this page · raw message