]> err.no Git - linux-2.6/commit
rt2x00: Fix skbdesc->data_len initialization
authorIvo van Doorn <ivdoorn@gmail.com>
Sun, 10 Feb 2008 21:51:21 +0000 (22:51 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 29 Feb 2008 20:37:20 +0000 (15:37 -0500)
commit647d0ca905f7d975e0bf41f571de6f443c814913
tree61f6552d708eb3cec28b8e0ba828834390db8283
parent417f412f2dfae016e29bb128bece60bf75d94d48
rt2x00: Fix skbdesc->data_len initialization

skbdesc->data_len was not initialized correctly
in rt2x00pci, rt2x00usb, rt2500usb and rt73usb.

The value was set to queue->data_size which
means that the incorrect frame size was pased
to the upper layers.

Correctly base the value on either the skb->len,
or the rx frame size passed to the driver by the
device.

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/rt2x00pci.c
drivers/net/wireless/rt2x00/rt2x00usb.c
drivers/net/wireless/rt2x00/rt73usb.c