Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 1 file changed
  • 0 comments
  • 2 contributors
Sep 06, 2012
Bjørn Mork bmork lsusb: decode CDC MBIM descriptor
Adding support for the CDC MBIM functional descriptor.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
29a38c4
Greg Kroah-Hartman Merge pull request #11 from bmork/mbim
lsusb: decode CDC MBIM descriptor
edfcc65

Showing 1 changed file with 23 additions and 0 deletions. Show diff stats Hide diff stats

  1. +23 0 lsusb.c
23 lsusb.c
@@ -3151,6 +3151,29 @@ dump_comm_descriptor(libusb_device_handle *dev, const unsigned char *buf, char *
3151 3151 case 0x17: /* command set detail desc */
3152 3152 case 0x18: /* telephone control model functional desc */
3153 3153 #endif
  3154 + case 0x1b: /* MBIM functional desc */
  3155 + type = "MBIM";
  3156 + if (buf[0] != 12)
  3157 + goto bad;
  3158 + printf("%sCDC MBIM:\n"
  3159 + "%s bcdMBIMVersion %x.%02x\n"
  3160 + "%s wMaxControlMessage %d\n"
  3161 + "%s bNumberFilters %d\n"
  3162 + "%s bMaxFilterSize %d\n"
  3163 + "%s wMaxSegmentSize %d\n"
  3164 + "%s bmNetworkCapabilities 0x%02x\n",
  3165 + indent,
  3166 + indent, buf[4], buf[3],
  3167 + indent, (buf[6] << 8) | buf[5],
  3168 + indent, buf[7],
  3169 + indent, buf[8],
  3170 + indent, (buf[10] << 8) | buf[9],
  3171 + indent, buf[11]);
  3172 + if (buf[11] & 0x20)
  3173 + printf("%s 8-byte ntb input size\n", indent);
  3174 + if (buf[11] & 0x08)
  3175 + printf("%s max datagram size\n", indent);
  3176 + break;
3154 3177 default:
3155 3178 /* FIXME there are about a dozen more descriptor types */
3156 3179 printf("%sUNRECOGNIZED CDC: ", indent);

No commit comments for this range

Something went wrong with that request. Please try again.