mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-22 16:28:32 +03:00
Temporary fix: mitm mode use EP 4-6
This commit is contained in:
@@ -492,14 +492,17 @@ const SIMTraceDriverConfigurationDescriptorMITM configurationDescriptorMITM = {
|
|||||||
0,
|
0,
|
||||||
0, /* FIXME: string descriptor for this interface */
|
0, /* FIXME: string descriptor for this interface */
|
||||||
},
|
},
|
||||||
|
#define DATAOUT_2 DATAOUT+3
|
||||||
|
#define DATAIN_2 DATAIN+3
|
||||||
|
#define INT_2 INT+3
|
||||||
/* Bulk-OUT endpoint standard descriptor */
|
/* Bulk-OUT endpoint standard descriptor */
|
||||||
{
|
{
|
||||||
sizeof(USBEndpointDescriptor),
|
sizeof(USBEndpointDescriptor),
|
||||||
USBGenericDescriptor_ENDPOINT,
|
USBGenericDescriptor_ENDPOINT,
|
||||||
USBEndpointDescriptor_ADDRESS(USBEndpointDescriptor_OUT,
|
USBEndpointDescriptor_ADDRESS(USBEndpointDescriptor_OUT,
|
||||||
DATAOUT),
|
DATAOUT_2),
|
||||||
USBEndpointDescriptor_BULK,
|
USBEndpointDescriptor_BULK,
|
||||||
MIN(BOARD_USB_ENDPOINTS_MAXPACKETSIZE(DATAOUT),
|
MIN(BOARD_USB_ENDPOINTS_MAXPACKETSIZE(DATAOUT_2),
|
||||||
USBEndpointDescriptor_MAXBULKSIZE_FS),
|
USBEndpointDescriptor_MAXBULKSIZE_FS),
|
||||||
0 /* Must be 0 for full-speed bulk endpoints */
|
0 /* Must be 0 for full-speed bulk endpoints */
|
||||||
},
|
},
|
||||||
@@ -508,9 +511,9 @@ const SIMTraceDriverConfigurationDescriptorMITM configurationDescriptorMITM = {
|
|||||||
sizeof(USBEndpointDescriptor),
|
sizeof(USBEndpointDescriptor),
|
||||||
USBGenericDescriptor_ENDPOINT,
|
USBGenericDescriptor_ENDPOINT,
|
||||||
USBEndpointDescriptor_ADDRESS(USBEndpointDescriptor_IN,
|
USBEndpointDescriptor_ADDRESS(USBEndpointDescriptor_IN,
|
||||||
DATAIN),
|
DATAIN_2),
|
||||||
USBEndpointDescriptor_BULK,
|
USBEndpointDescriptor_BULK,
|
||||||
MIN(BOARD_USB_ENDPOINTS_MAXPACKETSIZE(DATAIN),
|
MIN(BOARD_USB_ENDPOINTS_MAXPACKETSIZE(DATAIN_2),
|
||||||
USBEndpointDescriptor_MAXBULKSIZE_FS),
|
USBEndpointDescriptor_MAXBULKSIZE_FS),
|
||||||
0 /* Must be 0 for full-speed bulk endpoints */
|
0 /* Must be 0 for full-speed bulk endpoints */
|
||||||
},
|
},
|
||||||
@@ -518,9 +521,9 @@ const SIMTraceDriverConfigurationDescriptorMITM configurationDescriptorMITM = {
|
|||||||
{
|
{
|
||||||
sizeof(USBEndpointDescriptor),
|
sizeof(USBEndpointDescriptor),
|
||||||
USBGenericDescriptor_ENDPOINT,
|
USBGenericDescriptor_ENDPOINT,
|
||||||
USBEndpointDescriptor_ADDRESS( USBEndpointDescriptor_IN, INT ),
|
USBEndpointDescriptor_ADDRESS( USBEndpointDescriptor_IN, INT_2 ),
|
||||||
USBEndpointDescriptor_INTERRUPT,
|
USBEndpointDescriptor_INTERRUPT,
|
||||||
MIN(BOARD_USB_ENDPOINTS_MAXPACKETSIZE(INT),
|
MIN(BOARD_USB_ENDPOINTS_MAXPACKETSIZE(INT_2),
|
||||||
USBEndpointDescriptor_MAXINTERRUPTSIZE_FS),
|
USBEndpointDescriptor_MAXINTERRUPTSIZE_FS),
|
||||||
0x10
|
0x10
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user