1. 21 3月, 2014 1 次提交
    • B
      net: cdc_ncm: respect operator preferred MTU reported by MBIM · 259fef03
      Ben Chan 提交于
      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: NBen Chan <benchan@chromium.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      259fef03
  2. 17 1月, 2014 1 次提交
  3. 14 11月, 2013 1 次提交
  4. 06 11月, 2013 2 次提交
  5. 02 11月, 2013 22 次提交
  6. 12 4月, 2013 1 次提交
  7. 09 4月, 2013 1 次提交
  8. 31 3月, 2013 1 次提交
  9. 17 3月, 2013 1 次提交
  10. 28 2月, 2013 1 次提交
  11. 15 2月, 2013 1 次提交
    • B
      net: cdc_ncm: fix probing of devices with multiple control interface altsettings · f350ca03
      Bjørn Mork 提交于
      commit bd329e12 ("net: cdc_ncm: do not bind to NCM compatible MBIM devices")
      added a test for a CDC MBIM altsetting, implementing the cdc_ncm part of
      MBIM backward compatibility support.  This intentionally made the driver
      behave differently for CDC NCM devices with 2 alternate settings for the
      Communication interface, depending on whether or not CONFIG_USB_NET_CDC_MBIM
      was enabled.  This is correct iff alternate setting #1 really *is* a MBIM
      setting.  If not, then NCM probing will use a different altsetting than before,
      possibly causing probing failures depending on CONFIG_USB_NET_CDC_MBIM.
      
      Fix by setting the altsetting back to default after the test, restoring the
      previous behaviour for non MBIM devices.
      
      This bug causes probing of Huawei E3276 devices to fail when the MBIM driver
      is enabled, because these devices have a second alternate setting with no CDC
      functional descriptors.
      
      Cc: Greg Suarez <gsuarez@smithmicro.com>
      Cc: Alexey Orishko <alexey.orishko@stericsson.com>
      Reported-and-tested-by: NJonathan A. <yo.natan@hotmail.com>
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f350ca03
  12. 07 2月, 2013 1 次提交
  13. 28 1月, 2013 1 次提交
  14. 22 1月, 2013 3 次提交
  15. 07 1月, 2013 1 次提交
  16. 20 12月, 2012 1 次提交