]> git.baikalelectronics.ru Git - kernel.git/commit
net: cdc_ncm: workaround for missing CDC Union
authorBjørn Mork <bjorn@mork.no>
Mon, 21 Jan 2013 05:50:38 +0000 (05:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jan 2013 19:21:16 +0000 (14:21 -0500)
commit6974e64ec5d4b0a47deee6db0748b08cbcb1aa63
tree845edf91403629efe76be4de0e622815ec37b743
parentc8318c91a9e84ea0ad7466a60e094c86d3da7fa8
net: cdc_ncm: workaround for missing CDC Union

Adding support for the MBIM mode in some Sierra Wireless devices.

Some Sierra Wireless firmwares support CDC MBIM but have no CDC
Union funtional descriptor. This violates the MBIM specification,
but we can easily work around the bug by looking at the Interface
Association Descriptor instead.  This is most likely what
Windows uses too, which explains how the firmware bug has gone
unnoticed until now.

This change will not affect any currently supported device
conforming to the NCM or MBIM specifications, as they must have
the CDC Union descriptor.

Cc: Greg Suarez <gsuarez@smithmicro.com>
Cc: Alexey Orishko <alexey.orishko@stericsson.com>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c