Problems with uhid device.
John-Paul Andrusky
jpandrusky at gmail.com
Sun Sep 11 09:24:00 PDT 2005
Hi,
Finally got some time to play with it. With the second set of drivers and
and
the modifications you suggested below, it all works. Thanks.
BTW for any one else who does this, you'll need to use
UGETW(ed->wMaxPacketSize) instead of ed->wMaxPacketSize.
A temporary patch might be to add something to the file
> "/sys/dev/usb/uhid.c"
>
> Where you find:
>
> sc->sc_isize = hid_report_size(desc, size, hid_input, &sc->sc_iid);
> sc->sc_osize = hid_report_size(desc, size, hid_output, &sc->sc_oid);
> sc->sc_fsize = hid_report_size(desc, size, hid_feature, &sc->sc_fid);
>
> Add here:
> if(sc->sc_isize > ed->wMaxPacketSize)
> sc->sc_isize = ed->wMaxPacketSize;
>
> Then try again. You should now only see a single interrupt packet with
> "maxlen=5".
>
> --HPS
>
--
Cheers,
John-Paul Andrusky
More information about the freebsd-usb
mailing list