mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
usbdev: add ncm driver
The compilation and verification commands are shown below: ./tools/configure.sh sim:usbdev make -j sudo ./nuttx nsh> conn 2 nsh> dhcpd_start eth1 Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
@@ -1253,7 +1253,7 @@ static int usbhost_cfgdesc(FAR struct usbhost_cdcmbim_s *priv,
|
||||
|
||||
else if (ifdesc->classid == USB_CLASS_CDC_DATA &&
|
||||
ifdesc->subclass == CDC_SUBCLASS_NONE &&
|
||||
ifdesc->protocol == CDC_DATA_PROTO_NTB)
|
||||
ifdesc->protocol == CDC_DATA_PROTO_MBIMNTB)
|
||||
{
|
||||
priv->dataif = ifdesc->ifno;
|
||||
found |= USBHOST_DATAIFFOUND;
|
||||
|
||||
Reference in New Issue
Block a user