From 676de74d9bf14d6a8db21d65e2cb2f2e4a1e3720 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Wed, 14 Dec 2011 02:52:42 +0000 Subject: 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. --- Demos/Host/LowLevel/AndroidAccessoryHost/DeviceDescriptor.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Demos') diff --git a/Demos/Host/LowLevel/AndroidAccessoryHost/DeviceDescriptor.c b/Demos/Host/LowLevel/AndroidAccessoryHost/DeviceDescriptor.c index be6bf1023..4e174f0fc 100644 --- a/Demos/Host/LowLevel/AndroidAccessoryHost/DeviceDescriptor.c +++ b/Demos/Host/LowLevel/AndroidAccessoryHost/DeviceDescriptor.c @@ -55,10 +55,6 @@ uint8_t ProcessDeviceDescriptor(void) if (DeviceDescriptor.Header.Type != DTYPE_Device) return InvalidDeviceDataReturned; - /* Validate returned device Vendor ID against the Android ADK spec values */ - if (DeviceDescriptor.VendorID != ANDROID_VENDOR_ID) - return IncorrectAndroidDevice; - /* Check the product ID to determine if the Android device is in accessory mode */ if ((DeviceDescriptor.ProductID != ANDROID_ACCESSORY_PRODUCT_ID) && (DeviceDescriptor.ProductID != ANDROID_ACCESSORY_ADB_PRODUCT_ID)) -- cgit v1.2.3