projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add new RNDIS_Host_IsPacketReceived(), RNDIS_Device_ReadPacket() and RNDIS_Device_Wri...
[pub/lufa.git]
/
LUFA
/
Drivers
/
USB
/
Class
/
Host
/
RNDIS.c
diff --git
a/LUFA/Drivers/USB/Class/Host/RNDIS.c
b/LUFA/Drivers/USB/Class/Host/RNDIS.c
index
2349757
..
a75adcc
100644
(file)
--- a/
LUFA/Drivers/USB/Class/Host/RNDIS.c
+++ b/
LUFA/Drivers/USB/Class/Host/RNDIS.c
@@
-315,7
+315,7
@@
uint8_t RNDIS_Host_InitializeDevice(USB_ClassInfo_RNDIS_Host_t* const RNDISInter
}
if (InitMessageResponse.Status != REMOTE_NDIS_STATUS_SUCCESS)
}
if (InitMessageResponse.Status != REMOTE_NDIS_STATUS_SUCCESS)
- return RNDIS_
COMMAN
D_FAILED;
+ return RNDIS_
ERROR_LOGICAL_CM
D_FAILED;
RNDISInterfaceInfo->State.DeviceMaxPacketSize = InitMessageResponse.MaxTransferSize;
RNDISInterfaceInfo->State.DeviceMaxPacketSize = InitMessageResponse.MaxTransferSize;
@@
-361,7
+361,7
@@
uint8_t RNDIS_Host_SetRNDISProperty(USB_ClassInfo_RNDIS_Host_t* const RNDISInter
}
if (SetMessageResponse.Status != REMOTE_NDIS_STATUS_SUCCESS)
}
if (SetMessageResponse.Status != REMOTE_NDIS_STATUS_SUCCESS)
- return RNDIS_
COMMAN
D_FAILED;
+ return RNDIS_
ERROR_LOGICAL_CM
D_FAILED;
return HOST_SENDCONTROL_Successful;
}
return HOST_SENDCONTROL_Successful;
}
@@
-403,7
+403,7
@@
uint8_t RNDIS_Host_QueryRNDISProperty(USB_ClassInfo_RNDIS_Host_t* const RNDISInt
}
if (QueryMessageResponseData.QueryMessageResponse.Status != REMOTE_NDIS_STATUS_SUCCESS)
}
if (QueryMessageResponseData.QueryMessageResponse.Status != REMOTE_NDIS_STATUS_SUCCESS)
- return RNDIS_
COMMAN
D_FAILED;
+ return RNDIS_
ERROR_LOGICAL_CM
D_FAILED;
memcpy(Buffer, &QueryMessageResponseData.ContiguousBuffer, MaxLength);
memcpy(Buffer, &QueryMessageResponseData.ContiguousBuffer, MaxLength);
@@
-458,7
+458,8
@@
uint8_t RNDIS_Host_ReadPacket(USB_ClassInfo_RNDIS_Host_t* const RNDISInterfaceIn
*PacketLength = (uint16_t)DeviceMessage.DataLength;
*PacketLength = (uint16_t)DeviceMessage.DataLength;
- Pipe_Discard_Stream(DeviceMessage.DataOffset - (sizeof(RNDIS_Packet_Message_t) - sizeof(RNDIS_Message_Header_t)),
+ Pipe_Discard_Stream(DeviceMessage.DataOffset -
+ (sizeof(RNDIS_Packet_Message_t) - sizeof(RNDIS_Message_Header_t)),
NULL);
Pipe_Read_Stream_LE(Buffer, *PacketLength, NULL);
NULL);
Pipe_Read_Stream_LE(Buffer, *PacketLength, NULL);