On Monday, October 15, 2012 01:38:13 AM Larry Finger wrote: > On 10/14/2012 03:13 PM, Christian Lamparter wrote: > > in_ep and in_ep_num should not be the same as > > a device can have a different in_ep than "1". > > > > Signed-off-by: Christian Lamparter <chunkeey@xxxxxxxxxxxxxx> > > Larry, do you know of any hardware which has two in endpoints? > > The RTL8188CU has the following: > > Bus 004 Device 002: ID 0bda:8723 Realtek Semiconductor Corp. > bEndpointAddress 0x81 EP 1 IN > bEndpointAddress 0x02 EP 2 OUT > bEndpointAddress 0x82 EP 2 IN > bEndpointAddress 0x03 EP 3 OUT > bEndpointAddress 0x83 EP 3 IN > bEndpointAddress 0x03 EP 3 OUT > bEndpointAddress 0x83 EP 3 IN > bEndpointAddress 0x03 EP 3 OUT > bEndpointAddress 0x83 EP 3 IN > > My SU device has the same layout. It seems that only EP > 1 is used exclusively for input operations. It's a bit weird that you have three IN and OUT 0x3 eps. Is this really true or is this a c&p error and your devices have more than one interface configuration? The endpoint configuration for my SU devices (both are the same) look like this: Interface Descriptor: bEndpointAddress 0x83 EP 3 IN Bulk Data 512 bytes bEndpointAddress 0x04 EP 4 OUT Bulk Data 512 bytes bEndpointAddress 0x06 EP 6 OUT Bulk Data 512 bytes bEndpointAddress 0x0d EP 13 OUT Bulk Data 512 bytes It looks like that we should parse the endpoint descriptor and get the first endpoint from there. Regards, Chr -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html