masayuki2009 commented on pull request #3163:
URL: https://github.com/apache/incubator-nuttx/pull/3163#issuecomment-808042690
@PetteriAimonen
Thanks!
It works now.
```
diff --git a/drivers/usbdev/rndis.c b/drivers/usbdev/rndis.c
index 166b768b8d..65c35639dc 100644
--- a/drivers/usbdev/rndis.c
+++ b/drivers/usbdev/rndis.c
@@ -174,8 +174,8 @@ struct rndis_dev_s
uint32_t rndis_host_rx_count; /* RX packet counter */
uint8_t host_mac_address[6]; /* Host side MAC address */
- uint8_t response_queue[RNDIS_RESP_QUEUE_LEN];
size_t response_queue_bytes; /* Count of bytes waiting in
response_queue. */
+ uint8_t response_queue[RNDIS_RESP_QUEUE_LEN];
};
/* The internal version of the class driver */
```
```
[64231.795782] usb 3-4.2: USB disconnect, device number 21
[64231.795920] rndis_host 3-4.2:1.0 enxa0e0deadbeff: unregister 'rndis_host'
usb-0000:03:00.0-4.2, RNDIS device
[64236.203169] usb 3-4.2: new high-speed USB device number 22 using xhci_hcd
[64236.318499] usb 3-4.2: New USB device found, idVendor=584e, idProduct=5342
[64236.318502] usb 3-4.2: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[64236.318503] usb 3-4.2: Product: RNDIS gadget
[64236.318505] usb 3-4.2: Manufacturer: NuttX
[64236.318506] usb 3-4.2: SerialNumber: 1234
[64236.327639] rndis_host 3-4.2:1.0: skipping garbage
[64236.333227] rndis_host 3-4.2:1.0 eth0: register 'rndis_host' at
usb-0000:03:00.0-4.2, RNDIS device, a0:e0:de:ad:be:ff
[64236.413364] rndis_host 3-4.2:1.0 enxa0e0deadbeff: renamed from eth0
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]