summaryrefslogtreecommitdiff
path: root/MdePkg/Library/UefiUsbLib
diff options
context:
space:
mode:
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2009-05-06 04:26:30 +0000
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2009-05-06 04:26:30 +0000
commitc255449e639a272daa90421414084d407a715289 (patch)
tree6181c5b8ec62c7a08685373906b5f1a29bb9ceaf /MdePkg/Library/UefiUsbLib
parent8b85412a1d3a2648e43a10f6b07e8ffa81c980d3 (diff)
downloadedk2-platforms-c255449e639a272daa90421414084d407a715289.tar.xz
fix the wrong data length. According to spec, to get interface and configuration descriptors, should pass 1 as data length.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8246 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/UefiUsbLib')
-rw-r--r--MdePkg/Library/UefiUsbLib/UsbDxeLib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdePkg/Library/UefiUsbLib/UsbDxeLib.c b/MdePkg/Library/UefiUsbLib/UsbDxeLib.c
index a535c1f58d..c27fb03499 100644
--- a/MdePkg/Library/UefiUsbLib/UsbDxeLib.c
+++ b/MdePkg/Library/UefiUsbLib/UsbDxeLib.c
@@ -190,7 +190,7 @@ UsbGetInterface (
EfiUsbDataIn,
PcdGet32 (PcdUsbTransferTimeoutValue),
AlternateSetting,
- 2,
+ 1,
Status
);
}
@@ -295,7 +295,7 @@ UsbGetConfiguration (
EfiUsbDataIn,
PcdGet32 (PcdUsbTransferTimeoutValue),
ConfigurationValue,
- 2,
+ 1,
Status
);
}