mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-04 17:15:50 +00:00
- Fix false positive uipaq probe
Reported by: Alexander Motin <mav@freebsd.org> Submitted by: hps
This commit is contained in:
parent
9739167c64
commit
ec1201a2c9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=196493
@ -1103,6 +1103,10 @@ uipaq_probe(device_t dev)
|
||||
if (uaa->info.bIfaceIndex != UIPAQ_IFACE_INDEX) {
|
||||
return (ENXIO);
|
||||
}
|
||||
if (uaa->info.bInterfaceClass == UICLASS_IAD) {
|
||||
DPRINTF("IAD detected - not UIPAQ serial device\n");
|
||||
return (ENXIO);
|
||||
}
|
||||
return (usbd_lookup_id_by_uaa(uipaq_devs, sizeof(uipaq_devs), uaa));
|
||||
}
|
||||
|
||||
|
@ -484,6 +484,8 @@ typedef struct usb_interface_assoc_descriptor usb_interface_assoc_descriptor_t;
|
||||
#define UISUBCLASS_RF 0x01
|
||||
#define UIPROTO_BLUETOOTH 0x01
|
||||
|
||||
#define UICLASS_IAD 0xEF /* Interface Association Descriptor */
|
||||
|
||||
#define UICLASS_APPL_SPEC 0xfe
|
||||
#define UISUBCLASS_FIRMWARE_DOWNLOAD 1
|
||||
#define UISUBCLASS_IRDA 2
|
||||
|
Loading…
x
Reference in New Issue
Block a user