mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
STM32 OTGHS host: stm32_in_transfer() fails and returns NAK if a short transfer is received. This causes problems from class drivers like CDC/ACM where short packets are expected. In those protocols, any transfer may be terminated by sending short or NUL packet.
This commit is contained in:
committed by
Gregory Nutt
parent
6b0d7335a2
commit
3331e9c49a
@@ -831,8 +831,8 @@ static uint16_t recvfrom_tcpinterrupt(FAR struct net_driver_s *dev,
|
||||
{
|
||||
ninfo("TCP resume\n");
|
||||
|
||||
/* The TCP receive buffer is full. Return now and don't allow
|
||||
* any further TCP call backs.
|
||||
/* The TCP receive buffer is non-empty. Return now and don't
|
||||
* allow any further TCP call backs.
|
||||
*/
|
||||
|
||||
pstate->rf_cb->flags = 0;
|
||||
|
||||
Reference in New Issue
Block a user