CVSROOT: /cvs Module name: src Changes by: gerh...@cvs.openbsd.org 2016/11/25 05:43:26
Modified files: sys/dev/usb : if_umb.c if_umb.h mbim.h Log message: The NCM encoding allows to aggregate multiple segments in one single transfer. Using wMaxSegmentSize for bulk-in could break the rx-path because xfer length can be smaller than the messages sent by the device. And using some constant value for rx/tx size is also a bad idea, because we might be sending messages to the device that are too big for it to handle them. Therefore use the NCM GET_NTB_PARAMETERS request to query the device's configuration. Found, tested, and ok'ed by otto@