VirtualBox

Changeset 90051 in vbox


Ignore:
Timestamp:
Jul 6, 2021 10:27:32 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145545
Message:

VUSB: Only edit descriptors to hide remote wakeup when device actually reports it (see bugref:10059).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/USBProxyDevice.cpp

    r90027 r90051  
    12081208            Log(("usb-proxy: pProxyDev=%s configuration %d with bmAttr=%02X\n",
    12091209                 pUsbIns->pszName, paCfgs[iCfg].Core.bmAttributes, iCfg));
     1210            if (paCfgs[iCfg].Core.bmAttributes & RT_BIT(5))
     1211            {
    12101212                 paCfgs[iCfg].Core.bmAttributes = paCfgs[iCfg].Core.bmAttributes & ~RT_BIT(5); /* Remote wakeup. */
    1211             fEdited = true;
    1212             LogRel(("VUSB: Disabled '%s' remote wakeup for configuration %d\n", pUsbIns->pszName, iCfg));
     1213                 fEdited = true;
     1214                 LogRel(("VUSB: Disabled '%s' remote wakeup for configuration %d\n", pUsbIns->pszName, iCfg));
     1215            }
    12131216        }
    12141217    }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette