]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix alignment warning
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 11 Jan 2008 01:02:51 +0000 (02:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:26:34 +0000 (19:26 -0800)
commitc2679b164cd4b0c8a3a6f46eb0d411b69535de3b
tree729d7d629d74c4eef8cafc781925a8f02efdf853
parented37a371b2858669c15a33c0523562e3a288baa1
mac80211: fix alignment warning

When I introduced the alignment warning I forgot the A-MSDU case which
has a different requirement because each frame contains 14-byte 802.3
headers in front of the IP payload. This patch moves the alignment
warning to a place where we know whether we're dealing with an A-MSDU
frame and adjusts it accordingly.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mac80211/rx.c