rt2x00: Data and desc pointer initialization
authorIvo van Doorn <ivdoorn@gmail.com>
Thu, 10 Jan 2008 21:02:44 +0000 (22:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:09:47 +0000 (15:09 -0800)
commit40561b8426c27f187e2ae496ed603e7c4e3ab818
tree8aa31c5aca687b58590dfe2ba5a5aae9d44b5217
parentdd0d43ea0bbd4c4554b13d4a5d282f9c4d1b5591
rt2x00: Data and desc pointer initialization

rt2500usb and rt73usb data and desc pointer initialization
was incorrect because it was using uninitialized variables
to determine the length.

In addition rt2500usb used skb_pull and removed the ieee80211
from each received frame instead of using skb_trim to remove
the device descriptor from the frame.

Finally this also fixes the descriptor override when 4 byte
aligning occured. We still need a completely valid descriptor
when using the TX/RX dumping capabilities in debugfs.

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