aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA
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 /LUFA
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 'LUFA')
-rw-r--r--LUFA/Drivers/USB/Class/Common/AndroidAccessoryClassCommon.h3
-rw-r--r--LUFA/Drivers/USB/Class/Host/AndroidAccessoryClassHost.c3
2 files changed, 0 insertions, 6 deletions
diff --git a/LUFA/Drivers/USB/Class/Common/AndroidAccessoryClassCommon.h b/LUFA/Drivers/USB/Class/Common/AndroidAccessoryClassCommon.h
index f78643766..45e7ca540 100644
--- a/LUFA/Drivers/USB/Class/Common/AndroidAccessoryClassCommon.h
+++ b/LUFA/Drivers/USB/Class/Common/AndroidAccessoryClassCommon.h
@@ -64,9 +64,6 @@
#endif
/* Macros: */
- /** Vendor ID value in a Device Descriptor to indicate an Android device. */
- #define ANDROID_VENDOR_ID 0x18D1
-
/** Product ID value in a Device Descriptor to indicate an Android device in Open Accessory mode. */
#define ANDROID_ACCESSORY_PRODUCT_ID 0x2D00
diff --git a/LUFA/Drivers/USB/Class/Host/AndroidAccessoryClassHost.c b/LUFA/Drivers/USB/Class/Host/AndroidAccessoryClassHost.c
index 56a913d13..8ff64299f 100644
--- a/LUFA/Drivers/USB/Class/Host/AndroidAccessoryClassHost.c
+++ b/LUFA/Drivers/USB/Class/Host/AndroidAccessoryClassHost.c
@@ -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));