walnux/drivers/usbdev
Petteri Aimonen 4f66624ea3 USBDEV RNDIS: Fix occasional disconnections due to race condition
Sometimes Windows would send RNDIS_KEEPALIVE_MSG and RNDIS_QUERY_MSG close
to each other. This would cause the latter command to overwrite the reply for
the prior command. This in turn will cause Windows to drop the connection after
a 20 second timeout.

Easy way to reproduce the issue is to open the Windows "Adapter Status" dialog that
shows the realtime TX/RX byte counts. This causes multiple RNDIS_QUERY_MSGs per
second, and the connection will drop in less than an hour.

This commit fixes this issue, and other potential race conditions (such as USB
descriptor read in middle on RNDIS query) by using a separate queue for the reply
packets.
2021-03-24 14:44:23 -03:00
..
adb.c drivers: Fix typos reported by codespell 2021-02-25 18:57:18 -08:00
cdcacm.c drivers: Author Gregory Nutt: update licenses to Apache 2021-03-04 18:32:27 -08:00
cdcacm.h drivers: nxstyle fixes 2021-03-04 18:32:27 -08:00
cdcacm_desc.c drivers: nxstyle fixes 2021-03-04 18:32:27 -08:00
cdcecm.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
cdcecm.h drivers/usbdev/cdcecm.c: Adds USB Device Support for CDC/ECM 2018-08-16 08:49:11 -06:00
composite.c drivers: nxstyle fixes 2021-03-04 18:32:27 -08:00
composite.h drivers: nxstyle fixes 2021-03-04 18:32:27 -08:00
composite_desc.c drivers: nxstyle fixes 2021-03-04 18:32:27 -08:00
dfu.c Updates from coding standard review of PRs 753 and 754 2018-11-09 07:44:22 -06:00
Kconfig usbdev: add Android Debug Bridge driver 2020-10-26 08:28:48 -03:00
Make.defs drivers: Author Gregory Nutt: update licenses to Apache 2021-03-04 18:32:27 -08:00
pl2303.c drivers: nxstyle fixes 2021-03-04 18:32:27 -08:00
rndis.c USBDEV RNDIS: Fix occasional disconnections due to race condition 2021-03-24 14:44:23 -03:00
rndis_std.h sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
usbdev_strings.c drivers: nxstyle fixes 2021-03-04 18:32:27 -08:00
usbdev_trace.c drivers: Author Gregory Nutt: update licenses to Apache 2021-03-04 18:32:27 -08:00
usbdev_trprintf.c drivers: nxstyle fixes 2021-03-04 18:32:27 -08:00
usbmsc.c drivers: Author Gregory Nutt: update licenses to Apache 2021-03-04 18:32:27 -08:00
usbmsc.h drivers: nxstyle fixes 2021-03-04 18:32:27 -08:00
usbmsc_desc.c Fix USB issues 2020-01-10 12:09:05 -03:00
usbmsc_scsi.c drivers: nxstyle fixes 2021-03-04 18:32:27 -08:00