rt2x00: Request usb_maxpacket() once
commitb242e891c218162cfbae064b1a9136cdbed5ee53
authorIvo van Doorn <ivdoorn@gmail.com>
Thu, 15 Nov 2007 22:41:31 +0000 (15 23:41 +0100)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 19 Nov 2007 02:47:37 +0000 (18 18:47 -0800)
tree3e460f49ffd103881082bc561d0536109517b617
parent2ffbb8377c7a0713baf6644e285adc27a5654582
rt2x00: Request usb_maxpacket() once

The usb max packet size won't change during the
device's presence. We should store it in a
variable inside rt2x00dev and use that.
This should also fix a division error when the
device is being hot-unplugged while a frame is
being send out.

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