mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
MFC r196493
- Fix false positive uipaq probe
This commit is contained in:
parent
2bb2691018
commit
d51a8c13ea
2 changed files with 6 additions and 0 deletions
|
|
@ -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…
Reference in a new issue