]> git.baikalelectronics.ru Git - kernel.git/commit
net: qmi_wwan: increase max QMI message size to 4096
authorBjørn Mork <bjorn@mork.no>
Fri, 7 Sep 2012 07:36:06 +0000 (07:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Sep 2012 18:50:06 +0000 (14:50 -0400)
commitcd5d858edc87f041501e7855baec2daf5be9b885
treeae2ce306b9c2cbfae716455ef9800ed8919a6b60
parent5693b71d34ffb4637d323de89f69aeb4b6a70e21
net: qmi_wwan: increase max QMI message size to 4096

QMI requests exceeding 1500 bytes are possible and
device firmware does not handle fragmented messages
very well.  It is therefore necessary to increase
the maximum message size from the current 512 bytes.

The protocol message size limit is not documented
in any publicly known source, but the out of tree
driver from CodeAurora use 4 kB.  This is therefore
chosen as the new arbitrary default until the real
limit is known.

This should allow any QMI message to be transmitted
without fragmentation, fixing known issues with GPS
assistance data upload.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/qmi_wwan.c