rndis_host: fix transfer size negotiation
authorJean-Christophe Dubois <jcd@tribudubois.net>
Thu, 13 Mar 2008 22:56:36 +0000 (14:56 -0800)
committerJeff Garzik <jeff@garzik.org>
Mon, 17 Mar 2008 12:06:37 +0000 (08:06 -0400)
commit10d0f27c1baa4a094b4965708a15f2b0c4d65f5e
tree7ebabe73326eba396345d843f1d778bf84d0dc17
parent4373c9327f10c362f13d5b78557f93a471211a42
rndis_host: fix transfer size negotiation

This patch should resolve a problem that's troubled support for
some RNDIS peripherals.  It seems to have boiled down to using a
variable to establish transfer size limits before it was assigned,
which caused those devices to fallback to a default "jumbogram"
mode we don't support.  Fix by assigning it earlier for RNDIS.

Signed-off-by: Jean-Christophe Dubois <jcd@tribudubois.net>
[ cleanups ]
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/usb/rndis_host.c