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:
zhanghongyu
2024-03-18 20:06:54 +08:00
committed by Xiang Xiao
parent b328b35e2b
commit 4e79741e7d
12 changed files with 3172 additions and 12 deletions
+1 -1
View File
@@ -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;