Don't validate the Device Descriptor's vendor ID when validating that a device is an Android Accessory device; the Product ID and (later) Accessory protocol support is enough to probe AOA class support without having to maintain a list of Android device manufacture VID values.

This commit is contained in:
Dean Camera 2011-12-14 02:52:42 +00:00
parent 84a739ae72
commit 676de74d9b
3 changed files with 0 additions and 10 deletions

View file

@ -44,9 +44,6 @@ bool AOA_Host_ValidateAccessoryDevice(USB_ClassInfo_AOA_Host_t* const AOAInterfa
if (DeviceDescriptor->Header.Type != DTYPE_Device)
return false;
if (DeviceDescriptor->VendorID != ANDROID_VENDOR_ID)
return false;
*NeedModeSwitch = ((DeviceDescriptor->ProductID != ANDROID_ACCESSORY_PRODUCT_ID) &&
(DeviceDescriptor->ProductID != ANDROID_ACCESSORY_ADB_PRODUCT_ID));