Skip to content
Commit 259fef03 authored by Ben Chan's avatar Ben Chan Committed by David S. Miller
Browse files

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: default avatarBen Chan <benchan@chromium.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bfe9b3f8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment