mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
Merge remote-tracking branch 'origin/master' into localhost
This commit is contained in:
@@ -160,7 +160,7 @@ static int find_devnum(FAR const char *devfmt)
|
||||
*
|
||||
* Parameters:
|
||||
* dev - The device driver structure to be registered.
|
||||
* lltype - Link level protocol used by the driver (Ethernet, SLIP, PPP, ...
|
||||
* lltype - Link level protocol used by the driver (Ethernet, SLIP, TUN, ...
|
||||
* ...
|
||||
*
|
||||
* Returned Value:
|
||||
@@ -235,17 +235,6 @@ int netdev_register(FAR struct net_driver_s *dev, enum net_lltype_e lltype)
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if 0 /* REVISIT: Not yet supported */
|
||||
case NET_LL_PPP: /* Point-to-Point Protocol (PPP) */
|
||||
dev->d_llhdrlen = 0;
|
||||
dev->d_mtu = CONFIG_NET_PPP_MTU;
|
||||
#ifdef CONFIG_NET_TCP
|
||||
dev->d_recvwndo = CONFIG_NET_PPP_TCP_RECVWNDO;
|
||||
#endif
|
||||
devfmt = NETDEV_PPP_FORMAT;
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
nlldbg("ERROR: Unrecognized link type: %d\n", lltype);
|
||||
return -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user