diff options
author | Bjørn Mork <bjorn@mork.no> | 2013-01-21 05:50:39 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-21 19:21:17 (GMT) |
commit | 328d7b8a4ab045484e1cc09579abf13c8c6223e3 (patch) | |
tree | 00d6ceae423e5d20aa353c78c2ecfa98d25f1af8 /lib/strnlen_user.c | |
parent | 9992c2e2fbb72ffc63d4587c4aa94dfcd8229e55 (diff) | |
download | linux-fsl-qoriq-328d7b8a4ab045484e1cc09579abf13c8c6223e3.tar.xz |
net: cdc_mbim: send ZLP after max sized NTBs
We normally avoid sending ZLPs by padding NTBs with a zero byte
if the NTB is shorter than dwNtbOutMaxSize, resulting in a short
USB packet instead of a ZLP. But in the case where the NTB length
is exactly dwNtbOutMaxSize and this is an exact multiplum of
wMaxPacketSize, then we must send a ZLP.
This fixes an issue seen on a Sierra Wireless MC7710 device
where the transmission would fail whenever we ended up padding
the NTBs to max size.
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/strnlen_user.c')
0 files changed, 0 insertions, 0 deletions