aboutsummaryrefslogtreecommitdiffstats
path: root/Demos
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-12-14 02:52:42 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-12-14 02:52:42 +0000
commit676de74d9bf14d6a8db21d65e2cb2f2e4a1e3720 (patch)
tree547b08336f80b9e1f4d0e7d492c14a7c07a8f4c2 /Demos
parent84a739ae72cb9e82563c156d5c60b8254a381608 (diff)
downloadlufa-676de74d9bf14d6a8db21d65e2cb2f2e4a1e3720.tar.gz
lufa-676de74d9bf14d6a8db21d65e2cb2f2e4a1e3720.tar.bz2
lufa-676de74d9bf14d6a8db21d65e2cb2f2e4a1e3720.zip
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.
Diffstat (limited to 'Demos')
-rw-r--r--Demos/Host/LowLevel/AndroidAccessoryHost/DeviceDescriptor.c4
1 files changed, 0 insertions, 4 deletions
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))