From: Ivo van Doorn Date: Fri, 11 Jan 2008 19:53:07 +0000 (+0100) Subject: rt2x00: Fix ieee80211 payload alignment X-Git-Tag: v2.6.24~41^2~14^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d101f6496d51cbeb285f531dff059ce0ef28ffe3;p=pandora-kernel.git rt2x00: Fix ieee80211 payload alignment As Johannes Berg indicated, the NET_IP_ALIGN doesn't need to be used for ieee80211 frames. This means we can simplify the alignment calculation to just use the result of the header size modulus 4 as frame alignment. Furthermore we shouldn't use NET_IP_ALIGN in rt2x00usb because it could be 0 on some architectures and we absolutely need to have 2 bytes reserved for possible aligning. Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville --- Reading git-diff-tree failed