USB: gadget : Fix RNDIS code to pass USB Compliance tests (USBCV) with g_ether
commit830d1b188c997c4af094d4e20b194205ddbded13
authorMaulik Mankad <x0082077@ti.com>
Fri, 29 May 2009 13:04:40 +0000 (29 18:34 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Jun 2009 04:44:46 +0000 (15 21:44 -0700)
treebc48630bde285533656ffd95138de462ab8e8856
parent1f17c5026ce27d0449903d34f9fca461a45fe1cb
USB: gadget : Fix RNDIS code to pass USB Compliance tests (USBCV) with g_ether

This patch fixes a bug in the RNDIS code.

Due to this bug gether_connect() fails as the port remains un-initialized.

As a result following USB Compliance Tests were failing.
(1)EndpointDescriptorTest_DeviceConfigured
(2)Interface Descriptor Test.
(3)Halt Endpoint Test.
(4)SetConfigurationTest

The fix aligns rndis code with the CDC ECM for xxx_set_alt().

The above listed USB Compliance test passes with this fix.

Tested working fine on SDP with OMAP 3430.

Signed-off-by: Maulik Mankad <x0082077@ti.com>
CC: David Brownell <david-b@pacbell.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/f_rndis.c