]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: Fix rt2800 USB TX Path DMA issue
authorRA-Jay Hung <Jay_Hung@ralinktech.com>
Sat, 13 Nov 2010 18:11:46 +0000 (19:11 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 17 Nov 2010 21:18:55 +0000 (16:18 -0500)
commitfbc69b855b7c0d25bd5d2d654ea8fce8ae153cd8
tree250c4ae0481e888392dca3f24c188b6eed341a31
parent1d085a4ae4b60369c532fd84ac5889250a09341e
rt2x00: Fix rt2800 USB TX Path DMA issue

rt2800usb chips need to add 1~3 bytes zero padding after each 802.11 header & payload,
and at the end need to add 4 bytes zero padding whether doing TX bulk aggregation or not,

TXINFO_W0_USB_DMA_TX_PKT_LEN in TXINFO must include 1-3 bytes padding after 802.11 header & payload
but do not include 4 bytes end zero padding.

In rt2800usb_get_tx_data_len do not consider multiple of the USB packet size case, sometimes this will
cause USB DMA problem.

Signed-off-by: RA-Jay Hung <jay_hung@ralinktech.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800usb.c