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:
Janne Rosberg
2017-03-07 06:57:06 -06:00
committed by Gregory Nutt
parent 6b0d7335a2
commit 3331e9c49a
2 changed files with 42 additions and 27 deletions
+2 -2
View File
@@ -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;