]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: Fix ieee80211 payload alignment
authorIvo van Doorn <ivdoorn@gmail.com>
Fri, 11 Jan 2008 19:53:07 +0000 (20:53 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 16 Jan 2008 17:53:32 +0000 (12:53 -0500)
commit7487bc639711147993659d25120cc516ec324553
treee3aea45a519a7606cf4b717ddfe815cd6644248a
parent7435b92223c68ed769376a81ccd7f69243608df9
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<IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00pci.c
drivers/net/wireless/rt2x00/rt2x00usb.c