From: Ben Chan Date: Wed, 19 Mar 2014 21:00:06 +0000 (-0700) Subject: net: cdc_ncm: respect operator preferred MTU reported by MBIM X-Git-Tag: v3.15-rc1~113^2~115^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=259fef033ffe4e70bf7f358c53400a09f1b5384e;p=pandora-kernel.git net: cdc_ncm: respect operator preferred MTU reported by MBIM According to "Universal Serial Bus Communications Class Subclass Specification for Mobile Broadband Interface Model, Revision 1.0, Errata-1" published by USB-IF, the wMTU field of the MBIM extended functional descriptor indicates the operator preferred MTU for IP data streams. This patch modifies cdc_ncm_setup to ensure that the MTU value set on the usbnet device does not exceed the operator preferred MTU indicated by wMTU if the MBIM device exposes a MBIM extended functional descriptor. Signed-off-by: Ben Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed