]> git.baikalelectronics.ru Git - kernel.git/commit
cdc_ncm: fix short packet issue on some devices
authorHans Petter Selasky <hselasky@c2i.net>
Mon, 25 Apr 2011 05:35:19 +0000 (22:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Apr 2011 05:35:19 +0000 (22:35 -0700)
commit5e7bd3c1f59ac52719b5af0ea6c2a76088594286
tree0e8d3f1c5d9d8bc34d238e739ea57cd098560924
parentdbae9a64318bd6aa1adbd56c21de74022b1e2ae6
cdc_ncm: fix short packet issue on some devices

The default maximum transmit length for NCM USB frames should be so
that a short packet happens at the end if the device supports a length
greater than the defined maximum. This is achieved by adding 4 bytes
to the maximum length so that the existing logic can fit a short
packet there.

Signed-off-by: Hans Petter Selasky <hselasky@c2i.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c