]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/Ax88772.c
OptionRomPkg: Ax88772b: Fixing register access issue in Apple Eth Adapter
[mirror_edk2.git] / OptionRomPkg / Bus / Usb / UsbNetworking / Ax88772b / Ax88772.c
index 45ba3e52ff8a78854f521f30824b59795b957c55..e014d52ac0f3a33021f843ecc8ffcf1253082bb3 100644 (file)
@@ -625,15 +625,18 @@ Ax88772Reset (
                                   \r
   if (EFI_ERROR(Status)) goto err;  \r
 \r
-  SetupMsg.RequestType = USB_REQ_TYPE_VENDOR\r
-                        | USB_TARGET_DEVICE; \r
-  SetupMsg.Request = CMD_RXQTC;\r
-  SetupMsg.Value = 0x8000;\r
-  SetupMsg.Index = 0x8001;\r
-  SetupMsg.Length = 0;\r
-  Status = Ax88772UsbCommand ( pNicDevice,\r
+  if (pNicDevice->Flags != FLAG_TYPE_AX88772) {\r
+        SetupMsg.RequestType = USB_REQ_TYPE_VENDOR\r
+                        | USB_TARGET_DEVICE;\r
+        SetupMsg.Request = CMD_RXQTC;\r
+        SetupMsg.Value = 0x8000;\r
+        SetupMsg.Index = 0x8001;\r
+        SetupMsg.Length = 0;\r
+        Status = Ax88772UsbCommand ( pNicDevice,\r
                                   &SetupMsg,\r
-                                  NULL ); \r
+                                  NULL );\r
+  }\r
+\r
 err:\r
   return Status;\r
 }\r