Filter out more devices.

Fixes issue:  6936891 Android File Transfer agent
breaks USB ethernet dongle on Macbook Air

Change-Id: Iacd5e4d283b56b5644e66ab660da79ce7b5bd24e
diff --git a/src/libusb-glue.c b/src/libusb-glue.c
index a6f1a78..cdddfca 100644
--- a/src/libusb-glue.c
+++ b/src/libusb-glue.c
@@ -54,6 +54,8 @@
 #define USB_CLASS_MISC 0xEF
 #endif
 
+#define APPLE_VID 0x05ac
+
 /* To enable debug prints for USB stuff, switch on this */
 //#define ENABLE_USB_BULK_DEBUG
 
@@ -229,10 +231,10 @@
    * you find some weird combination...
    */
   if (!(dev->descriptor.bDeviceClass == USB_CLASS_PER_INTERFACE ||
-	dev->descriptor.bDeviceClass == USB_CLASS_COMM ||
-	dev->descriptor.bDeviceClass == USB_CLASS_PTP ||
-	dev->descriptor.bDeviceClass == USB_CLASS_VENDOR_SPEC ||
-	dev->descriptor.bDeviceClass == USB_CLASS_MISC)) {
+	    dev->descriptor.bDeviceClass == USB_CLASS_PTP ||
+	    dev->descriptor.bDeviceClass == USB_CLASS_VENDOR_SPEC) ||
+      /* Apple devices sometimes freeze when probed by libusb */
+      dev->descriptor.idVendor == APPLE_VID) {
     return 0;
   }