between 1-255 where 0 is reserved. The pseudo report ID
UHIDEV_CLAIM_MULTIPLE_REPORTID is currently colliding with the valid
report ID 255. Therefore crank it which gets rid of the collision and
increase the related fields in order to cope with larger integers.
Thanks to Damien Couderc <openbsd at petrocore dot eu> for reporting and
testing.
-/* $OpenBSD: uhidev.h,v 1.32 2021/09/12 06:58:08 anton Exp $ */
+/* $OpenBSD: uhidev.h,v 1.33 2021/10/29 15:43:55 anton Exp $ */
/* $NetBSD: uhidev.h,v 1.3 2002/10/08 09:56:17 dan Exp $ */
/*
struct uhidev_attach_arg {
struct usb_attach_arg *uaa;
struct uhidev_softc *parent;
- uint8_t reportid;
-#define UHIDEV_CLAIM_MULTIPLE_REPORTID 255
- uint8_t nreports;
+ u_int reportid;
+#define UHIDEV_CLAIM_MULTIPLE_REPORTID 256
+ u_int nreports;
uint8_t *claimed;
};