Commit 3e800b6f authored by Mike Lockwood's avatar Mike Lockwood Committed by Colin Cross
Browse files

USB: gadget: f_mtp: Support for file transfer length greater than 4 gigabytes



For backward compatibility with PTP, MTP is limited to a 32-bit file size.
When transferring files greater than 4 gig, MTP uses 0xFFFFFFFF as the file size
and the receiver reads until it receives a short packet.

Expanded size of mtp_file_range.length to 64 bits and added support for
writing zero length packets.

Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent 76ac6550
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment