]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/net/wireless/rt2x00/rt2500usb.c
rt2x00: Align RX descriptor to 4 bytes
authorIvo van Doorn <ivdoorn@gmail.com>
Sun, 9 Mar 2008 21:38:18 +0000 (22:38 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 13 Mar 2008 20:02:33 +0000 (16:02 -0400)
commitf855c10b6e7b0c448c35b88266f788dd3738375e
tree0144787573334e3b87b957347d01453196dc870b
parent40e024de932cca8b54fbcd0e5faf8f364cc84ec0
rt2x00: Align RX descriptor to 4 bytes

Some architectures give problems when reading
RX frame descriptor words when the descriptor
is not aligned on a 4 byte boundrary.

Due to optimalizations for the ieee80211 payload
4 byte alignment, it is no longer guarenteed
that the descriptor is placed on the 4 byte
boundrary (In fact, for rt73usb it is absolutely
never aligned to 4 bytes, for rt2500usb it depends
on the length of the payload).

This will copy the descriptor to a 4 byte aligned
location before it is read for the first time.
This will also move the payload data alignment
in rt2x00usb (instead of inside the driver) where
it has always belonged.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2500usb.c
drivers/net/wireless/rt2x00/rt2x00usb.c
drivers/net/wireless/rt2x00/rt73usb.c