if (PipeNum == PRNTInterfaceInfo->Config.DataINPipeNumber)
{
- Size = DataINEndpoint->EndpointSize;
+ Size = le16_to_cpu(DataINEndpoint->EndpointSize);
EndpointAddress = DataINEndpoint->EndpointAddress;
Token = PIPE_TOKEN_IN;
Type = EP_TYPE_BULK;
}
else if (PipeNum == PRNTInterfaceInfo->Config.DataOUTPipeNumber)
{
- Size = DataOUTEndpoint->EndpointSize;
+ Size = le16_to_cpu(DataOUTEndpoint->EndpointSize);
EndpointAddress = DataOUTEndpoint->EndpointAddress;
Token = PIPE_TOKEN_OUT;
Type = EP_TYPE_BULK;
};
Pipe_SelectPipe(PIPE_CONTROLPIPE);
-
return USB_Host_SendControlRequest(PortStatus);
}
};
Pipe_SelectPipe(PIPE_CONTROLPIPE);
-
return USB_Host_SendControlRequest(NULL);
}
return HOST_SENDCONTROL_Successful;
}
- DeviceIDStringLength = SwapEndian_16(DeviceIDStringLength);
+ DeviceIDStringLength = be16_to_cpu(DeviceIDStringLength);
if (DeviceIDStringLength > BufferSize)
DeviceIDStringLength = BufferSize;